mutt and vim
Dave Sherohman wrote:
>
> On Wed, Apr 25, 2001 at 03:08:45PM -0500, will trillich wrote:
> > in /usr/share/vim/vim56/filetype.vim i found the line
> > au BufNewFile,BufRead snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt-*-\d\+,ae\d\+.txt set ft=mail
> >
> > the part that works for new mutt email is
> >
> > mutt-*-\d\+
> >
> > but we need to add a pattern to match filenames like
> >
> > /tmp/muttlEoKra
> > /tmp/muttDSveKd
> >
> > what's the syntax for these vim patterns? (-*- looks like glob,
> > but then we have \d for digit (i presume) and \+ for... well, i
> > don't know.)
>
> Looks like a bastard child of regexes and shell globs. I suspect that you
> could probably match both styles of mutt filename in a single expression with
> something along the lines of
>
> mutt-\?*-\?\d\+
>
> but it would probably be easier to just add a new pattern of
>
> mutt\d\+
i found a better way, based on other tips i got
from debian-user folk:
# ~/.muttrc
set editor="vim -c 'set ft=mail tw=64'"
works every time.
--
mailto:will@serensoft.com
http://www.dontUthink.com/
Reply to: