Hi, On Fri, 18 Jan 2002 Nick Wilson spewed into the ether: > Hi everyone. > > A little oddity for you; > I just upgraded the editor I use to Vim6 and 15mins ago it appeared to > be coloring my messages (putting the text to a ghastly purple). as I > wrote them. > However, as I started to write this one it stopped. > > Does anyone know what might be going on?
No, but this might help. Here is a function by Chip Campbell, which can tell you the colour 'type' (don't know what you call it in Vim-speak) of a the <cword>. function! HiCheck() let i = "hi<" let i = i . synIDattr(synID(line("."),col("."),1),"name") let i = i . "> trans<" let i = i . synIDattr(synID(line("."),col("."),0),"name") let i = i . "> lo<" let i = i . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") let i = i . ">" :echo i endfunction I have this in my .vimrc : nmap <F6> :call HiCheck()<CR> So, you could just put the cursor under the offending word, hit <f6>, and voila!, you know what syntax region it's part of. Then, you could find your way through $VIMRUNTIME/syntax/mail.vim, and figure out why the said regexp is being matched. You could, optionally, cook up your own syntax file, and use that instead, so you don't have to go through such rude shocks ;-) Ok, this was waaay OT, so I should stop now before I get kicked off the list :-) pv. -- Prahlad Vaidyanathan <[EMAIL PROTECTED]> The farther you go, the less you know. -- Lao Tsu, "Tao Te Ching"
msg23315/pgp00000.pgp
Description: PGP signature