From d2d3900ea28d1bd2a86238e9c16d142d07ec7e45 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 18 May 2015 15:05:59 +0100 Subject: added .nvim with configuration --- nvim/after/ftplugin/tex/mappings.vim | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 nvim/after/ftplugin/tex/mappings.vim (limited to 'nvim/after/ftplugin/tex/mappings.vim') diff --git a/nvim/after/ftplugin/tex/mappings.vim b/nvim/after/ftplugin/tex/mappings.vim new file mode 100644 index 0000000..a8753bb --- /dev/null +++ b/nvim/after/ftplugin/tex/mappings.vim @@ -0,0 +1,50 @@ +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 +nnoremap k :LatexmkStop:LatexmkClean +nnoremap h :split header.sty -- cgit v1.2.3