Till --

        Thanks for looking that up, but I'm not sure how it applies.

        As of Vim7, if you don't have:

let g:tex_flavor='latex'

then the default filetype behavior to a ".tex" file is to treat it as 
plaintex. In that case, Vim-LaTeX is not invoked at all and thus the 
texrc doesn't get run.

        It looks like some native Vim compiler support was added in Vim7. That 
support wasn't there in 6, and so Vim-LaTeX would get started 
automatically. Now, in a vanilla Vim7 installation with no explicit 
g:tex_flavor set, Vim-LaTeX is ignored.

        I frequently respond to messages in other groups where people complain 
about Vim-LaTeX not getting loaded, and that's just because they 
upgraded to Vim7 and didn't know to add the flavor line to their vimrc. 
After that, everything is fine. For some reason, I never thought to post 
here and see if there was a way to modify the Vim-LaTeX distro so that 
setting g:tex_flavor wasn't necessary. <?>

        --Ted

Till Maas wrote:
> On Mon August 4 2008, Ted Pavlic wrote:
>> In the recent patches that were applied to Vim-LaTeX, was the line:
>>
>>      let g:tex_flavor='latex'
>>
>> added somewhere? Without it, Vim7's filetype plugin fails to load
>> Vim-LaTeX. Something changed between Vim6 and Vim7 that made latex *not*
>> the default, which seems strange.
> 
> According to svn in the file trunk/vimfiles/ftplugin/latex-suite/texrc, there 
> was the following line since 2002-04-30:
> TexLet g:Tex_Flavor = 'latex'
> 
> This is the comment about it:
> " NOTE: The values of g:Tex_Flavor and g:Tex_CompilerFlags are provided as a
> "       way to make compiler/tex.vim standalone. i.e independent of the rest
> "       of latex-suite. These variables are NOT used if you have already
> "       defined g:Tex_CompileRule_dvi above.
> "
> " specifies the current latex flavor.
> 
> Hth,
> Till
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

-- 
Ted Pavlic <[EMAIL PROTECTED]>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to