commit f5adde28a4af43a27b53ab0b4b85a3b66d229f69 parent f8ab3aff2992edac4837886224677ea54bc8a5ba Author: Anders Damsgaard <andersd@riseup.net> Date: Mon, 26 Mar 2018 10:25:46 -0400 Use custom configuration for latex files Diffstat:
M | links/.vim/ftplugin/tex.vim | | | 8 | ++++++++ |
M | links/.vim/plugins.vim | | | 2 | +- |
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/links/.vim/ftplugin/tex.vim b/links/.vim/ftplugin/tex.vim @@ -12,6 +12,14 @@ augroup latex_options " s = conceal superscripts/subscripts let g:tex_conceal="agm" + NoMatchParen " disable paranthesis matching for faster performance + + " use latexmk as make program for continuous compilation + setlocal makeprg=latexmk\ -pdf\ % + + " or run in tmux pane: + nnoremap <leader>p :!tmux new-window -n "latexmk" "latexmk -pdf -pvc %";tmux select-window -l<cr><cr> + augroup END augroup latex_typography diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -89,7 +89,7 @@ Plug 'plasticboy/vim-markdown' Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete ~/.mutt/aliases " LaTeX -Plug 'lervag/vimtex' +"Plug 'lervag/vimtex' Plug 'anders-dc/vim-scholarref' " search bibtex refs from web " Vimscript