On Fri, Sep 18, 2015 at 07:09:17PM +1000, Erik Christiansen wrote:
> On 18.09.15 09:47, Christian Brabandt wrote:
> > 
> > On Fr, 18 Sep 2015, Erik Christiansen wrote:
> > 
> > > So, in .vimrc, something vaguely like:
> > > 
> > > au BufNewFile,BufRead   ~/Desktop/mutt-*   call Set_for_mutt()
> > [...]
> > 
> > You don't need that autocommand. Simply create a file 
> > ~/.vim/ftplugin/mail.vim and put all mutt related stuff there and
> > add an entry :filetype plugin  to your .vimrc
> 
> Thanks Christian, for the alternative implementation, but I don't need
> ~/.vim/ftplugin/mail.vim when I can equally easily do it in .vimrc.

For me
if has("autocmd")
    au FileType mail set ...

works fine without any additional tweaking.

w

Reply via email to