Marius Kleiner wrote:

> Looks like there is a mismatch between the following three elements 
> (v8.1.0332):
> - In the documentation of ft-tex-plugin and g:tex_flavor: "If no keywords are 
> found, it defaults to plaintex."

That is correct.  "format" is then set to "plain".

> - In runtime/autoload/dist/ft.vim, comments for dist#ft#FTtex(): "Default to 
> "latex" or to g:tex_flavor, can be set in user's vimrc."

That should be "plain" instead of "latex".  I'll correct it.

> - The actual code in dist#ft#FTtex() (lines 649 ff.): 
> " Default value, may be changed later:
>     let format = exists("g:tex_flavor") ? g:tex_flavor : 'plain'
> 
> To clean up, I propose:
> - either to change the comment in ft.vim to say "Default to "plaintex"  ..."
> - or actually change code and documentation to make the default to
> latex (would be my personal preference, as latex today is much more
> prevalent than plain tex).
> 
> Let me know your votes.

Since it has worked this way for quite a while, changing the default
will just cause trouble.

-- 
It doesn't really matter what you are able to do if you don't do it.
                                (Bram Moolenaar)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui