Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7
Brought to you by:
srinathava,
tmaas
From: Till M. <ope...@ti...> - 2008-08-05 20:29:40
|
On Tue August 5 2008, Ted Pavlic wrote: > Till -- > > Thanks for looking that up, but I'm not sure how it applies. > > As of Vim7, if you don't have: > > let g:tex_flavor='latex' > > then the default filetype behavior to a ".tex" file is to treat it as > plaintex. In that case, Vim-LaTeX is not invoked at all and thus the > texrc doesn't get run. I have vim 7.1.245 from Fedora, which ships some tex.vim files. Nevertheless vim-latex is still run, e.g. the folding is still done by vim-latex and \ll runs latex. Maybe some features are not working, is there some minimal tex file where something does not work for you without setting tex_flavor? Or where may tex_flaveor be already set, it is not in my .vimrc or in /etc/vimrc. > It looks like some native Vim compiler support was added in Vim7. That > support wasn't there in 6, and so Vim-LaTeX would get started > automatically. Now, in a vanilla Vim7 installation with no explicit > g:tex_flavor set, Vim-LaTeX is ignored. Here vim provides these files: /usr/share/vim/vim71/compiler/tex.vim /usr/share/vim/vim71/ftplugin/initex.vim /usr/share/vim/vim71/ftplugin/plaintex.vim /usr/share/vim/vim71/ftplugin/tex.vim /usr/share/vim/vim71/syntax/initex.vim /usr/share/vim/vim71/syntax/plaintex.vim /usr/share/vim/vim71/syntax/tex.vim I do not know how they interfer with vim-latex, though. Regards, Till |