set ts=4 sw=4 set wrap! set number set incsearch set cursorline set scrolloff=2 set completeopt=menuone,noinsert augroup FocusNumbers autocmd! 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