Re: [Vim-latex-devel] First steps with LS (at last)
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2004-06-17 02:51:54
|
On Thu, 17 Jun 2004, Luc Hermitte wrote: > I'm doing my first steps with LaXeX-suite (at last) and I have run into > a little bug -- if we can call it a bug. > > It is easy to reproduce on my box: > $> gvim foo.tex > \ll > And then Vim complains about s:target not defined into Tex_RunLaTeX(). > > Once :TTarget called, and \ll typed again, vim complains about :TCLevel > beeing undefined. > > After investigations, it seems that =AB:compiler tex=BB is not executed -= - > 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'). 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: =09" This line seems to be necessary to source our compiler/tex.vim file. =09" The docs are unclear why this needs to be done even though this file i= s =09" the first compiler plugin in 'runtimepath'. =09runtime compiler/tex.vim So it looks like there was always a problem with getting latex-suite's tex/compiler.vim file to get sourced... Now that you put latex-suite at the end of the 'rtp', then latex-suite's compiler/tex.vim will not be sourced by the above line (:runtimepath only sources the first compiler/tex.vim found which will be vim's standard compiler/tex.vim). Anyway... 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. 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... Srinath PS: Hope latex-suite is useful :) |