From 8df9472e0cdbab0d12211c2bc77918e8f515c409 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 8 Aug 2015 20:08:42 +0200 Subject: Improve installation and organization --- .vim/after/ftplugin/tex/mappings.vim | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .vim/after/ftplugin/tex/mappings.vim (limited to '.vim/after/ftplugin/tex/mappings.vim') diff --git a/.vim/after/ftplugin/tex/mappings.vim b/.vim/after/ftplugin/tex/mappings.vim new file mode 100644 index 0000000..e7dd610 --- /dev/null +++ b/.vim/after/ftplugin/tex/mappings.vim @@ -0,0 +1,59 @@ +inoremap (( \left( +inoremap )) \right) +inoremap {{ \left\{ +inoremap }} \right\} +inoremap [[ \left[ +inoremap ]] \right] +inoremap == \,=\, +inoremap >> \,\geq\, +inoremap << \,\leq\, +inoremap ++ \,+\, +inoremap -- \,-\, + +iabbrev ga \alpha +iabbrev gb \beta +iabbrev gg \gamma +iabbrev gd \delta +iabbrev ge \varepsilon +iabbrev gz \zeta +iabbrev gh \eta +iabbrev gt \theta +iabbrev gi \iota +iabbrev gk \kappa +iabbrev gl \lambda +iabbrev gm \mu +iabbrev gn \nu +iabbrev gx \xi +iabbrev gr \rho +iabbrev gs \sigma +iabbrev gf \phi +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 + +" 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