Mercurial > vim
diff runtime/ftplugin/mail.vim @ 26100:babd9f1dbe12
Update runtime files
Commit: https://github.com/vim/vim/commit/113cb513f76d8866cbb6dc85fa18aded753e01da
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 7 20:27:04 2021 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Nov 2021 21:30:10 +0100 |
parents | fdb8a9c7bd91 |
children | 4027cefc2aab |
line wrap: on
line diff
--- a/runtime/ftplugin/mail.vim +++ b/runtime/ftplugin/mail.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Mail " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 Nov 20 +" Last Change: 2021 Oct 23 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -26,6 +26,14 @@ setlocal fo+=tcql " Add n:> to 'comments, in case it was removed elsewhere setlocal comments+=n:> +" .eml files are universally formatted with DOS line-endings, per RFC5322. +" If the file was not DOS the it will be marked as changed, which is probably +" a good thing. +if expand('%:e') ==? 'eml' + let b:undo_ftplugin ..= " fileformat=" .. &fileformat + setlocal fileformat=dos +endif + " Add mappings, unless the user doesn't want this. if !exists("no_plugin_maps") && !exists("no_mail_maps") " Quote text by inserting "> "