2015-12-06 21:46:08 +01:00

21 lines
564 B
VimL

set nocompatible
let &rtp = '~/.vim/bundle/neosnippet.vim/,' . &rtp
let &rtp = '~/.vim/bundle/vimtex,' . &rtp
let &rtp .= ',~/.vim/bundle/vimtex/after'
filetype plugin indent on
syntax enable
let g:vimtex_imaps_snippet_engine = 'neosnippet'
let g:vimtex_imaps_list = [
\ { 'lhs_rhs' : ['((', '\left($1\right)'],
\ 'leader' : '',
\ 'wrapper' : 's:wrap_math_snippet'},
\]
" Add custom mapping through vimtex#imap#add_map
call vimtex#imaps#add_map({
\ 'lhs_rhs' : [ 'v', '\vec{${1}}${0}'],
\ 'wrapper' : 's:wrap_math_snippet'})