From 797b816edfdf8b25fbf4fa815bd0caff362addb1 Mon Sep 17 00:00:00 2001 From: Srinath Avadhanula Date: Thu, 16 Jan 2003 17:42:09 +0000 Subject: [PATCH] - Previously if a file which didn't have \usepackage{german} triggered latex-suite and then the user opened a file which did have \usepackage{german}, then b:Tex_SmartQuote* would not change. We want to process the \usepackage lines for every file... A first pass at implementing this. As a long term solution, make SetTeXOptions() trigger a user autocommand called LatexSuiteInit. This is caught by everyone who so wishes. This enables us to not have to modify main.vim everytime... --- ftplugin/latex-suite/main.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ftplugin/latex-suite/main.vim b/ftplugin/latex-suite/main.vim index 9e2083e..e85e5e8 100755 --- a/ftplugin/latex-suite/main.vim +++ b/ftplugin/latex-suite/main.vim @@ -34,6 +34,10 @@ endif " set up global defaults. exe "so ".s:path.'/texrc' +augroup LatexSuite User LatexSuiteInit + au! +augroup END + " }}} nmap