From 5e3382ae6e02ca80134efbfd56b3abe261473e35 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 25 Apr 2015 21:34:33 +0100 Subject: Various changes --- vim/after/ftplugin/tex/mappings.vim | 52 ++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 21 deletions(-) (limited to 'vim/after/ftplugin/tex') diff --git a/vim/after/ftplugin/tex/mappings.vim b/vim/after/ftplugin/tex/mappings.vim index 05d02dd..a8753bb 100644 --- a/vim/after/ftplugin/tex/mappings.vim +++ b/vim/after/ftplugin/tex/mappings.vim @@ -10,25 +10,37 @@ inoremap << \,\leq\, inoremap ++ \,+\, inoremap -- \,-\, -inoremap `a \alpha -inoremap `b \beta -inoremap `g \gamma -inoremap `d \delta -inoremap `e \varepsilon -inoremap `z \zeta -inoremap `h \eta -inoremap `t \theta -inoremap `i \iota -inoremap `k \kappa -inoremap `l \lambda -inoremap `m \mu -inoremap `n \nu -inoremap `x \xi -inoremap `r \rho -inoremap `s \sigma -inoremap `f \phi -inoremap `p \pi -inoremap `w \omega +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 @@ -36,5 +48,3 @@ nnoremap e :LatexErrors nnoremap o :LatexView nnoremap k :LatexmkStop:LatexmkClean nnoremap h :split header.sty - -iabbrev dd \d -- cgit v1.2.3