From e2d48b806e0e9719abbee2efff2d1af739979b94 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 25 Jun 2015 11:35:07 +0100 Subject: Merge vim and neovim configs --- vim/after/ftplugin/tex/mappings.vim | 39 +++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 15 deletions(-) (limited to 'vim/after/ftplugin/tex/mappings.vim') diff --git a/vim/after/ftplugin/tex/mappings.vim b/vim/after/ftplugin/tex/mappings.vim index a8753bb..e7dd610 100644 --- a/vim/after/ftplugin/tex/mappings.vim +++ b/vim/after/ftplugin/tex/mappings.vim @@ -31,20 +31,29 @@ iabbrev gp \pi iabbrev gw \omega iabbrev dd \d -function! SynctexShow() - let synctex = glob("*.synctex.gz") - if strlen(synctex) == 0 - echom "no synctex file found" - else - let pdffile = substitute(synctex,"synctex.gz","pdf","") - let execline = printf(":!zathura --synctex-forward %d:%d:%s %s", line('.'), col('.'), shellescape(bufname("%")), shellescape(pdffile)) - exec execline - end -endfunction +" function! SynctexShow() +" let synctex = glob("*.synctex.gz") +" if strlen(synctex) == 0 +" echom "no synctex file found" +" else +" let pdffile = substitute(synctex,"synctex.gz","pdf","") +" let execline = printf(":!zathura --synctex-forward %d:%d:%s %s", line('.'), col('.'), shellescape(bufname("%")), shellescape(pdffile)) +" exec execline +" end +" endfunction -nnoremap a :call SynctexShow() -nnoremap i :Latexmk -nnoremap e :LatexErrors -nnoremap o :LatexView -nnoremap k :LatexmkStop:LatexmkClean +" nnoremap a :call SynctexShow() +" nnoremap i :Latexmk +" nnoremap e :LatexErrors +" nnoremap o :LatexView +" noremap k :LatexmkStop:LatexmkClean +" nnoremap h :split header.sty + + +nnoremap i :VimtexCompile +nnoremap e :VimtexErrors +nnoremap o :VimtexView +nnoremap k :VimtexStop:VimtexClean +nnoremap t :VimtexTocToggle +nnoremap h :split header.sty nnoremap h :split header.sty -- cgit v1.2.3