From 75cbe26d06529d5a80f03fc8627232027a24918d Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Fri, 8 May 2020 14:25:50 +0200 Subject: Changed vim tex compilation mapping to use script. --- files/vim/ftplugin/tex/tex.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/vim/ftplugin/tex/tex.vim b/files/vim/ftplugin/tex/tex.vim index b42e44a..e440561 100644 --- a/files/vim/ftplugin/tex/tex.vim +++ b/files/vim/ftplugin/tex/tex.vim @@ -9,11 +9,13 @@ setlocal textwidth=80 nnoremap C :sp ~/.vim/ftplugin/tex/tex.vim nnoremap e :Errors " proselint not enabled by default (it's slow) -nnoremap sp :SyntasticCheck proselint +"nnoremap sp :SyntasticCheck proselint -nnoremap temp :-1r ~/.vim/ftplugin/tex/snips/template.txtGdd?<+++>cf> +nnoremap c :w:! toPDF.sh % +nnoremap o :w:! toPDF.sh -o % + +nnoremap temp :-1r ~/.vim/ftplugin/tex/snips/template.txt/<+++>cf> -nnoremap c :w:! pdflatex --shell-escape % inoremap ldocclass \documentclass{}o<++>k$i inoremap lpckg \usepackage{}o<++>k$i inoremap lbdoc \begin{document}o\end{document}kkI -- cgit v1.2.1