Re: Documentation for total beginners
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,BufReadsnd.\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\+
--
That's not gibberish... It's Linux. - Byers, The Lone Gunmen
Geek Code 3.1: GCS d? s+: a- C++ UL++$ P++>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r y+
Reply to: