[Vim-latex-devel] compiler rules
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2002-11-08 18:13:51
|
I have a headache! Here is the current state of affairs. When latex-suite/main.vim is called, the following things happen (details edited out): * :source compiler.vim * :fun! SetTeXCompilerTarget() * :com! TCTarget :call SetTeXCompilerTarget() * :fun! <SID>SetTeXOptions() * :setlocal sw ts isk (This step should be deleted, but that is not today's headache.) * :TCTarget * :runtime compiler/tex.vim * :call <SID>SetTeXOptions() The net effect is that compiler/tex.vim is sourced after SetTexCompilerTarget() is called, so the compiler script sets 'makeprg'. At Srinath's request, I have uncommented the "runtime compiler/tex.vim" line; I commented this out in a revision a few days ago. If you guys trust me, I will make radical changes at some point. For now, my goal is to undo the damage I did, and maybe make a small improvement. (My new setting for 'makeprg' works on more systems, I think.) I have tested this on Linux, W95, and OSX. (On OSX, it is a problem that compiler/tex.vim ignores the target format, since most users want pdf instead of dvi.) One thing I cannot figure out: on W95, g:Tex_CompilerFormat is defined, and I cannot figure out where. This variable is used in compiler/tex.vim and overrides all other methods. --Benji |