On 18/12/08 07:36, bill lam wrote:
> On Wed, 17 Dec 2008, Christian Ebert wrote:
>> set editor="vim -c \"set spell tw=70 et\" \"+call search('^$')\""
>
> Thanks this work.
>
>> However you might have to experiment with the "\" escapes for it
>> to work. Much easier to move this stuff into
>> ~/.vim/after/ftplugin/mail.vim
>
> I can confirm set ft? gives mail. How does vim know this filetyp?
> The file name of the temp file is /tmp/mutt-blahblah  without file
> extension.
>

I think that anything starting mutt- is detected as "mail" filetype by 
the autocommands defined at line 1013 and 2358 of 
$VIMRUNTIME/filetype.vim (current version, dated 2008 Dec 08), provided 
that there are 6 letters, digits, dashes, underscores, and/or (except in 
special cases like muttrc.vim) dots after "mutt" for a total of 10 
characters. However, that would match mutt-blahb or mutt-foo35 but not 
mutt-blahblah -- or would it?


Best regards,
Tony.
-- 
"The sooner you fall behind, the more time you'll have to catch up!"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to