- 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...
This commit is contained in:
Srinath Avadhanula
2003-01-16 17:42:09 +00:00
parent 3ac0dac6b0
commit 797b816edf
+6
View File
@@ -34,6 +34,10 @@ endif
" set up global defaults.
exe "so ".s:path.'/texrc'
augroup LatexSuite User LatexSuiteInit
au!
augroup END
" }}}
nmap <silent> <script> <plug> i
@@ -578,6 +582,8 @@ function! <SID>SetTeXOptions()
" The docs are unclear why this needs to be done even though this file is
" the first compiler plugin in 'runtimepath'.
runtime compiler/tex.vim
silent! do LatexSuite User LatexSuiteInit
endfunction
call <SID>SetTeXOptions()