Richard Hartmann wrote:
> when you start any line in a mail with 'From', you get highlighting as
> if this was a header line even if there is a newline between the start
> of the file and the line you write (i.e. when you are in the body of the
> mail). The same is try for 'To:' and related words. Why 'From' and not
> 'From:' suffices to highlight a line, I do not know, I am not familiar
> with the RFCs in question.
>
> To reproduce
>
> vim -u NONE -U NONE
> :syntax on
> :set ft=mail
> i
> Foo
>
> >From me to you
>
> You will see the line starting with 'From' being highlighted.
Do you notice the extra ">" in the line above? I didn't add it. It's
because mail systems do handle these lines differently. It's from the
old days when multiple messages would be dumped into one file, called
mbox, and a line starting with "From" being used as a start-of-message
marker.
Nevertheless, most email programs know how to escape these lines (that's
what happened above), so they are not really special when editing a
message. Only when you actually edit the mbox file, but that's
uncommon. We could create a separate "mbox" filetype for that.
--
If an elephant is left tied to a parking meter, the parking fee has to be paid
just as it would for a vehicle.
[real standing law in Florida, United States of America]
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---