From 164fc42e8bd1df6be75248adae5c7f085cdb6363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 6 Oct 2013 11:44:50 +0200 Subject: [PATCH] Fixed reinit --- autoload/latex.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoload/latex.vim b/autoload/latex.vim index d7a4e33..024d44f 100644 --- a/autoload/latex.vim +++ b/autoload/latex.vim @@ -64,18 +64,18 @@ function! latex#reinit() call latex#latexmk#stop_all() " - " Reset variables + " Reset global variables " let s:initialized = 0 unlet g:latex#data - bufdo unlet b:notbslash - bufdo unlet b:notcomment - bufdo unlet b:latex " - " Reinitialize + " Reset and reinitialize buffers " - bufdo call latex#init() + bufdo if getbufvar('%', '&filetype') == 'tex' | + \ unlet b:notbslash b:notcomment b:latex | + \ call latex#init() | + \ endif endfunction " {{{1 latex#view