Thanks William, this does the trick indeed. My guess was that the custom options would be read in at last, for that they are not overwritten by other (standard) option. But now it works, so it'll be fine.
Simon On 2009/11/16 9:17,William (B.J.) Snow Orvis <aetherkni...@gmail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Simon, > > On Sun, Nov 15, 2009 at 12:32:31PM +0100, Simon Quittek wrote: >> Hello mailing list! >> I put the lines >> >> let g:Tex_IgnoredWarnings.="\nhas changed" >> let g:Tex_IgnoreLevel+=1 >> >> in the >> $VIM/ftplugin/tex.vim >> file to suppress some errors connected with certain files I am compiling. >> >> When opening a *.tex file these lines result in error messages in vim: >> "C2.4_Moessbauer.tex" 126L, 3472C >> Error detected while processing ~/.vim/ftplugin/tex.vim: >> line 17: >> E121: Undefined variable: g:Tex_IgnoredWarnings >> line 18: >> E121: Undefined variable: g:Tex_IgnoreLevel >> >> Do you know any way to avoid typing the commands each time when opening a >> *.tex file? >> >> Thanks in advance! >> Simon > > I explicitly set both of those variables in my ~/.vim/ftplugin/tex.vim, > and it works fine: > > let g:Tex_IgnoredWarnings = > \'Underfull'."\n". > \'Overfull'."\n". > \'specifier changed to'."\n". > \'You have requested'."\n". > \'Missing number, treated as zero.'."\n". > \'There were undefined references'."\n". > \'Citation %.%# undefined'."\n". > \'LaTeX Font Warning' > let g:Tex_IgnoreLevel = 8 > > Maybe tex.vim gets read before latex-suite, so those variables are not > yet defined when your .= and += operators get called. > > Hope this helps, > William > > - -- > ...................................................................... > William (B.J.) Snow Orvis PGP Fingerprint: > aetherkni...@gmail.com E6DC E687 EBB7 E99C 1BCE > http://www.aedifice.org D04F 057B 0CD0 8A49 3E98 > > -----BEGIN PGP SIGNATURE----- > > iEYEARECAAYFAksBCqwACgkQBXsM0IpJPphDZQCgztdSAxP8i2T9GPlh4l3ziUH4 > 2VQAnj1nlNveqv/6gMslEM9+YS9d14V8 > =Aajm > -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel