summaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/tex/mappings.vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-26 11:21:55 +0200
committerUrbain Vaes <urbain@vaes.uk>2015-06-26 11:21:55 +0200
commitf526017928ea2c928877dc519ad97dc5ffafd416 (patch)
tree2010630a4158d7adc829f2052f2e8ec3fe5f4b7f /vim/after/ftplugin/tex/mappings.vim
parente9a5df445029f95b6d44f9c7b086bf33f4275acf (diff)
parent17d2ff0828ed8e6e7e59948fb14f17fd5ee5f8e2 (diff)
Merge branch 'master' of github.com:uvaes/dotfiles
Conflicts: zshrc
Diffstat (limited to 'vim/after/ftplugin/tex/mappings.vim')
-rw-r--r--vim/after/ftplugin/tex/mappings.vim39
1 files changed, 24 insertions, 15 deletions
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 <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>
-nnoremap <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>