LaTeX & Syntastic & Python

This commit is contained in:
Pavel Korytov 2019-04-20 14:07:42 +03:00
parent 5ce2dcd9fa
commit 9c07ef14b5
3 changed files with 24 additions and 0 deletions

View file

@ -56,6 +56,7 @@ let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0
set conceallevel=2
let g:tex_conceal='abdmgs'
let g:syntastic_tex_lacheck_quiet_messages = { 'regex': '\Vpossible unwanted space at' }
"Python
"let g:python_host_prog='/usr/bin/python'
@ -86,6 +87,8 @@ nmap <C-h> <C-W>h
nmap <C-j> <C-W>j
nmap <C-k> <C-W>k
nmap <C-l> <C-W>l
"Other mappings
nmap <C-p> :Files<CR>
"Snippets

View file

@ -0,0 +1,12 @@
snippet qinit "def __init__(self, parent=None)"
def __init__(self, parent=None):
super().__init__(parent)
$0
endsnippet
snippet forl "[action for item in iterable]"
[$1 for $2 in $3]
$0
endsnippet

View file

@ -5,3 +5,12 @@ endsnippet
snippet suml "\sum\limits"
\sum\limits^{${1:n}}_{${2:i=1}} $0
endsnippet
snippet part "\partial"
\partial $0
endsnippet
snippet vmat "\begin{pmatrix} \end{pmatrix}"
\begin{pmatrix} $1 \end{pmatrix}$0
endsnippet