diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-06-18 11:44:04 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-06-18 11:44:04 +0200 |
commit | b3f139c55cb501113a72ed771f87ba4c1332969a (patch) | |
tree | 848bd6c4e0d2c62dd3e1606a9cf8b8a7be013af7 /nvim/after/ftplugin/tex/mappings.vim | |
parent | 6c9dd9ada1329bf1dc96be23ab4e48320b874865 (diff) |
Replaced latex-box by vimtex
Diffstat (limited to 'nvim/after/ftplugin/tex/mappings.vim')
-rw-r--r-- | nvim/after/ftplugin/tex/mappings.vim | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/nvim/after/ftplugin/tex/mappings.vim b/nvim/after/ftplugin/tex/mappings.vim index c0f7036..e7dd610 100644 --- a/nvim/after/ftplugin/tex/mappings.vim +++ b/nvim/after/ftplugin/tex/mappings.vim @@ -31,20 +31,29 @@ iabbrev <buffer> gp \pi iabbrev <buffer> gw \omega iabbrev <buffer> 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 <buffer> <LocalLeader>a :call SynctexShow()<CR><CR> -nnoremap <buffer> <LocalLeader>i :Latexmk<CR> -nnoremap <buffer> <LocalLeader>e :LatexErrors<CR> -nnoremap <buffer> <LocalLeader>o :LatexView<CR> -noremap <buffer> <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR> +" nnoremap <buffer> <LocalLeader>a :call SynctexShow()<CR><CR> +" nnoremap <buffer> <LocalLeader>i :Latexmk<CR> +" nnoremap <buffer> <LocalLeader>e :LatexErrors<CR> +" nnoremap <buffer> <LocalLeader>o :LatexView<CR> +" noremap <buffer> <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR> +" nnoremap <buffer> <LocalLeader>h :split header.sty<CR> + + +nnoremap <buffer> <LocalLeader>i :VimtexCompile<CR> +nnoremap <buffer> <LocalLeader>e :VimtexErrors<CR> +nnoremap <buffer> <LocalLeader>o :VimtexView<CR> +nnoremap <buffer> <LocalLeader>k :VimtexStop<CR>:VimtexClean<CR> +nnoremap <buffer> <LocalLeader>t :VimtexTocToggle<CR> +nnoremap <buffer> <LocalLeader>h :split header.sty<CR> nnoremap <buffer> <LocalLeader>h :split header.sty<CR> |