Re: [Vim-latex-devel] how is texrc processed ?
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2003-04-03 02:31:11
|
Alan Schmitt wrote: > Hi, > > I'm playing with some options of the local copy of my texrc (the one in > ftplugin/tex), and some things do not work. For instance, I used to have > in my .vimrc the following: > let g:Tex_IgnoredWarnings = > \'Underfull¡'. > \'Overfull¡'. > \'specifier changed to¡'. > \'You have requested¡'. > \'Missing number, treated as zero.¡'. > \'There were undefined references¡'. > \'Citation %.%# undefined¡'. > \'LaTeX Font Warning¡' > > It worked as planned. I discovered I could put it in the texrc as: > TexLet g:Tex_IgnoredWarnings = > \'Underfull¡'. > \'Overfull¡'. > \'specifier changed to¡'. > \'You have requested¡'. > \'Missing number, treated as zero.¡'. > \'There were undefined references¡'. > \'Citation %.%# undefined¡'. > \'LaTeX Font Warning¡' > > But it does not work (ie I still get "LaTeX Font" warnings). It's as if > some other texrc was overriding this one. > > What am I doing wrong here ? I am not sure what is going on, but I can tell you what :TexLet does. (This command is defined in texrc .) It checks whether the variable is already defined. If it is, :TexLet does nothing; if the variable is not already defined, :TexLet acts like :let . In other words, the first use of :TexLet wins, whereas the last use of :let wins. What should happen is that the user texrc is read before the default texrc, so that the user's :TexLet is effective. Of course, your vimrc file gets read long before either texrc. You can check that the texrc files are read in the right order by using :scriptnames I hope that points you in the right direction. --Benji Fisher |