Re: [Vim-latex-devel] First steps with LS (at last)
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2004-06-17 03:56:48
|
* On Wed, Jun 16, 2004 at 07:52:00PM -0700, Srinath Avadhanula <srinath@f= astmail.fm> wrote: > > After investigations, it seems that =AB:compiler tex=BB is not execut= ed > > -- when I executed this, I only have one complain about a command > > redefined and then \ll can be used. > > > > It that normal ? Or is there a bug in my installation ? (LS beeing > > installed into ~/vimfiles/latex-suite which is the last directory of = my > > 'runtimepath'). >=20 > I remember that sourcing the compiler plugin was always a bit of a > problem... I remember that it was some subtle bug in vim itself (or > lack of documentation)... I see the following lines in main.vim: > runtime compiler/tex.vim OK I see, Thanks. Why don't you just execute :compiler tex (which in turns calls =AB:runtime! compiler/tex.vim=BB) ? This modification fixed the problem -- in my configuration at least. Is there any incompatibilities between $VIMRUNTIME/compiler/tex.vim (t63) and the one from LaTeXSuite (tls) that you want to load only LaTeXSuite's one ? 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 ab= ort the sourcing of t63. > The standard way of using latex-suite is to unzip it in your > ~/vimfiles directory which will create ~/vimfiles/compiler/tex.vim > which will in turn get sourced by the above line when you open a .tex > file. That would be too easy. ;) As LaTeXSuite and my configuration are quite redundant, I wanted to progressivelly integrate LaTeXSuite. Thus I had to rewrite some plugins of mine (like my context-dependant bracketing system) in order to fix the problems I had, and I didn't wanted the plugin of LaTeXSuite (like imaps.vim) to interact with my plugins the time I was fixing them. > Don't know exactly what goes wrong in situations like yours... Has to > do with how vim sources compiler plugins when a .tex file is opened... It is because you used =AB:runtime=BB and not =AB:runtime!=BB I guess. > PS: Hope latex-suite is useful :) It is, it is. First of all I do not need to maintain things like tex-tools.vim anymore. :) I can focus on my set of C&C++ ftplugins. I will have to search within the archive if haven't missed threads about little customisations I am interrested in (how to disable the preview of the log file (which is not automatically reloaded BTW) , how to integrate HT4Tex, ...), and you will see me again. :) Thanks! --=20 Luc Hermitte http://hermitte.free.fr/vim/ |