On Fri, Aug 20, 1999 at 12:33:37AM +0100, Alisdair McDiarmid wrote:
> I use vim and mutt together (as it should be :) and I'm trying to
> configure them to both have the same syntax colouring display.
>
> I like vim's standard colours for email mode - yellow for all
> headers except email addresses and the Subject header, which are
> blue. However, if I use:
Question for ya first...how do you get vim's "standard colours for email
mode" ...I guess how do you get vim's email mode? :)
> color header brightblue black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
> in my muttrc file, the whole header line is coloured blue, when
> all I want coloured is the email address.
Hmmm...although I'd think your regexp would work fine, have you tried:
color header brightblue black <.*@.*>
??? :)
It would highlight the braces as well, but I'm not the king of regexp's so
maybe there's a way to "sed" out the offending <>'s from that particular
regexp if it's a problem.
Or, if you wanted the WHOLE address, including the text part, you could do:
" .*>" ...although that leaves the leading space in there as well. sed
would be so handy in these cases.
mark->
--
Fairlight-> ||| [EMAIL PROTECTED] | Fairlight Consulting
__/\__ ||| "I'm talking for free... | http://www.fairlite.com
<__<>__> ||| It's a New Religion..." | [EMAIL PROTECTED]
\/ ||| PGP Public Key available via finger @iglou, or Key servers