Arno wrote:

> > > Hi,
> > > If I edit the attached file with 
> > > 
> > > set filetype=mail
> > > set spell
> > > set spelllang=fr
> > > 
> > > the word "Subject" in the header file is underlined. It shouldn't because 
> > > it's
> > > a header key.
> > 
> > Isn't it highlighted as mailSubject?  It's different from mailHeader by
> > default.
> 
> It's highlighted as a spell error. Here is the difference for the same mail
> between spelllang=en and spelllang=fr
> http://renevier.net/pics/spellcheck_fr.png
> http://renevier.net/pics/spellcheck_en.png

Perhaps this change helps:

--- syntax/mail.vim~    2012-01-16 22:29:36.000000000 +0100
+++ syntax/mail.vim     2012-01-16 22:29:41.000000000 +0100
@@ -40,7 +40,7 @@
 syn region     mailHeaderKey   contained 
contains=mailHeaderEmail,mailEmail,@mailQuoteExps,@NoSpell start="\v(^(\> 
?)*)@<=(to|b?cc):" skip=",$" end="$"
 syn match      mailHeaderKey   contained 
contains=mailHeaderEmail,mailEmail,@NoSpell "\v(^(\> 
?)*)@<=(from|reply-to):.*$" fold
 syn match      mailHeaderKey   contained contains=@NoSpell "\v(^(\> 
?)*)@<=date:"
-syn match      mailSubject     contained "\v^subject:.*$" fold
+syn match      mailSubject     contained contains=@NoSpell "\v^subject:.*$" 
fold
 syn match      mailSubject     contained contains=@NoSpell "\v(^(\> 
?)+)@<=subject:.*$"
 
 " Anything in the header between < and > is an email address



-- 
Mynd you, m00se bites Kan be pretty nasti ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui