diff --git a/vim/.vim/init.vim b/vim/.vim/init.vim index 47e37f8..8b6b42d 100644 --- a/vim/.vim/init.vim +++ b/vim/.vim/init.vim @@ -11,3 +11,31 @@ augroup FocusNumbers autocmd WinEnter,BufEnter * setlocal relativenumber autocmd WinLeave,BufLeave * setlocal norelativenumber augroup END + + + +let g:vimtex_view_method = 'general' +let g:vimtex_compiler_method = 'pdflatex' +let g:vimtex_compiler_pdflatex = { + \ 'build_dir' : 'build', + \ 'callback' : 1, + \ 'continuous' : 0, + \ 'options' : [ + \ '-verbose', + \ '-file-line-error', + \ '-synctex=1', + \ '-interaction=nonstopmode', + \ ], + \} +let g:vimtex_quickfix_mode = 2 +let g:vimtex_quickfix_open_on_warning = 0 + +augroup LatexAbbrev + autocmd! + autocmd FileType tex inoreabbrev sec \section{} + autocmd FileType tex inoreabbrev ssec \subsection{} + autocmd FileType tex inoreabbrev bf \textbf{} + autocmd FileType tex inoreabbrev it \textit{} + autocmd FileType tex inoreabbrev href \href{}{} + autocmd FileType tex inoreabbrev enum \begin{itemize}\item\end{itemize} +augroup END diff --git a/vim/.vim/pack/latex/start/vimtex b/vim/.vim/pack/latex/start/vimtex new file mode 160000 index 0000000..82d2305 --- /dev/null +++ b/vim/.vim/pack/latex/start/vimtex @@ -0,0 +1 @@ +Subproject commit 82d2305ff71dfb3bd91602534cc9bb9a195bcb38