summaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/tex
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-06-25 11:35:07 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-06-25 11:35:07 +0100
commite2d48b806e0e9719abbee2efff2d1af739979b94 (patch)
treee1748568e55c500c69d7c199bdfa06aee7fbd86c /vim/after/ftplugin/tex
parent2ba9604d198fca427c26cba3e82a1b256c633543 (diff)
Merge vim and neovim configs
Diffstat (limited to 'vim/after/ftplugin/tex')
-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>