Re: [Vim-latex-devel] First steps with LS (at last)
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2004-06-17 13:09:26
|
* On Wed, Jun 16, 2004 at 09:38:38PM -0700, Srinath Avadhanula <srinath@f= astmail.fm> wrote: > Hmm... This does look like it might be a better way of doing things. > The thing which confuses me is why vim is not doing > :runtime! compiler/tex.vim > automatically when you open a tex file even though we have "filetype > plugin on". Does vim only do: > :runtime! ftplugin/tex.vim > when you open a tex file?!=20 More or less yes.=20 (-> :runtime! ftplugin/tex.vim ftplugin/tex_*.vim ftplugin/tex/*.vim) > (I am surprised I didn't know this already if its true) Its not > mentioned anywhere in the docs that you have to manually source the > compiler ftplugin IIRC. They are not compiler ftplugin, but just compiler plugins IIRC. And vim can not know which ones must be sourced. The typical example is with C++ code. Vim can not guess if we are using VC++, BCB, DM C/C++, GCC, Open Watcom, ... Which means we can not have it automatically load any compiler plugin. (La)TeX is a special case as every (La)TeX compilers use the same &efm. Hence we can have only one compiler/tex.vim which is common to (fpTeX\|MiKTeX\|...)::(pdf(La)TeX\|(La)TeX\|...) It is not the same with the other languages. > > If t63 is loaded first, then tls will override the definitions that > > need to be overriden, and LaTeXSuite will ignore the other ones I > > guess. If tls is loaded first, then it can set =ABcurrent_compiler=BB > > which will abort the sourcing of t63. >=20 > ... I guess that if I have latex-suite's compiler/tex.vim NOT finish > even if 'current_compiler' exists and set it to 'latex' when it does > get sourced, then it will handle both cases. Have to check this a bit > thoroughly.=20 I think so. Moreover, this is what is said at the end of :h write-compiler-plugin Otherwise, it seems it is already the case as =AB:compiler tex=BB fixes t= he problem AFAIC -- when LaTeXSuite is at the end of 'runtimepath'. --=20 Luc Hermitte http://hermitte.free.fr/vim/ |