On 2009-03-03, Raúl Núñez de Arenas Coronado wrote:
> Saluton Tom :)
> 
> On Tue 3 Mar 2009 16:26 +0100, Tom <[email protected]> dixit:
> >> so setting the filetype based upon the extension is not possible.
> >
> > It uses the host name and some mangeled id for the file name though.
> > So you should be able to match on the whole filename.
> 
> The problem is that *all* text boxes have the same suffix for the
> filename. With "it's all text" you can choose the (fake) suffix to use
> when editing the file.

I don't see the problem.  There's no reason to use just the suffix
to select the file type.  As Tom said, the ViewSourceWith Firefox
plugin uses the host name as part of the temporary file name, so you
can use that to help determine the file type.  The following is an
example from my private filetype.vim file,

    au! BufRead,BufNewFile /tmp/wwwmail.myisp.com*.txt setfiletype mail

where wwwmail.myisp.com is my ISP's web mail interface server.

Regards,
Gary



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

Reply via email to