On 2009-09-06, Patrick Gen-Paul wrote:
> Taking a look at /usr/share/vim/vim71/syntax/muttrc.vim, I noticed that
> there was none of the usual syntax hightlighting.
>
> When I issued a ":set ft?", I found out that vim had set the file type
> to "mail" instead of "vim".
>
> On an older debian "etch" system with vim 7.0, this does not happen.
>
> I temporarily copied the $VIMRUNTIME/filetype.vim file from that system
> and that was enough to fix the problem, eliminating the possibility that
> anything specific to my individual setup, such as plugins or other in my
> ~/.vim/ environment was causing this.
>
> I don't know if this is specific to the debian "lenny" package or if
> anyone can reproduce with the official vim 7.1 package.
>
> I have not checked if this also occurs with vim 7.2.
>
> Let me know if you suspect that this is misconfiguration on my part, or
> if you feel I should file a bug regarding this issue.
When I open this file using vim 7.2.148 and execute ":set ft?", I
see "filetype=vim". I just opened $VIMRUNTIME/filetype.vim (version
2008 Dec 14) to check the rule that sets the 'filetype' to "mail"
and discovered this at lines 2363 and 2364:
" Mail (also matches muttrc.vim, so this is below the other checks)
au BufNewFile,BufRead mutt[[:alnum:]._-]\{6\} setf mail
So it appears that the problem has already been found and fixed.
Regards,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---