mirror of
https://github.com/vim-latex/vim-latex.git
synced 2026-06-09 15:37:14 +02:00
- 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user