Add vimtex

This commit is contained in:
Tobias Reisinger 2020-11-18 16:06:48 +01:00
parent 2b9a70668c
commit d5eee70630

View file

@ -17,6 +17,7 @@ call plug#begin('~/.config/vim/plugged')
Plug 'cespare/vim-toml'
Plug 'posva/vim-vue'
Plug 'vhdirk/vim-cmake'
Plug 'lervag/vimtex'
call plug#end()
packadd termdebug
@ -49,8 +50,6 @@ set wildmode=longest,list,full
set fillchars+=vert:\
autocmd FileType yaml setlocal ai tabstop=2 shiftwidth=2 expandtab cuc nu
runtime ftplugin/man.vim
set keywordprg=:Man
@ -58,7 +57,12 @@ if has("autocmd")
" Save cursor position. I don't understand this part
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
au BufNewFile,BufRead neomutt-* setf mail
au FileType yaml setlocal ai tabstop=2 shiftwidth=2 expandtab cuc nu
au FileType lilypond au BufWritePost * !lilypond %
au FileType dot au BufWritePost * !dot -Tpng -O %
endif
@ -127,3 +131,8 @@ let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_oclint_config_file = '.syntastic_oclint_config'
let g:syntastic_c_config_file = '.syntastic_cc_config'
let g:tex_flavor = 'latex'
let g:vimtex_compiler_latexmk = {
\ 'build_dir': 'latexmk_output'
\}