tex.vim (1088B)
1 augroup latex_options 2 3 let g:vimtex_quickfix_latexlog = { 4 \ 'overfull' : 0, 5 \ 'underfull' : 0} 6 7 " customize what is concealed in LaTeX documents: 8 " a = conceal accents/ligatures 9 " d = conceal delimiters 10 " g = conceal Greek 11 " m = conceal math symbols 12 " s = conceal superscripts/subscripts 13 let g:tex_conceal="agm" 14 15 " use latexmk as make program for continuous compilation 16 "setlocal makeprg=latexmk\ -pdf\ % 17 setlocal makeprg=latexmk\ -lualatex\ % 18 19 " or automake in tmux window: 20 nnoremap <leader>p :!tmux new-window -a -n "latexmk" "latexmk -pdf -pv -f %" \; select-window -l<cr><cr>:echo "Compiling once in new tmux window"<cr> 21 nnoremap <leader>P :!tmux new-window -a -n "latexmk" "latexmk -pdf -pvc -f %" \; select-window -l<cr><cr>:echo "Autocompiling in new tmux window"<cr> 22 23 setlocal commentstring=%\ %s 24 25 augroup END 26 27 augroup latex_typography 28 setlocal spell spl=en_us 29 setlocal fdo+=search 30 setlocal list 31 setlocal formatoptions=alw2qt " automatically reflow paragraphs 32 augroup END