diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2021-11-08 00:10:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-08 00:10:44 +0100 |
| commit | 8cbe100fcc9c5d34b07f417a82b745803fa3ef19 (patch) | |
| tree | f859abc6bc58bc21db11d0bf9633b7f31fe48cf6 /runtime/ftplugin/mail.vim | |
| parent | 16d4af6d2f549709aa55510f5ae52238c5cadb9c (diff) | |
| download | rneovim-8cbe100fcc9c5d34b07f417a82b745803fa3ef19.tar.gz rneovim-8cbe100fcc9c5d34b07f417a82b745803fa3ef19.tar.bz2 rneovim-8cbe100fcc9c5d34b07f417a82b745803fa3ef19.zip | |
vim-patch:partial 113cb513f76d (#16260)
Update runtime files
https://github.com/vim/vim/commit/113cb513f76d8866cbb6dc85fa18aded753e01da
skip doc/eval.txt
skip doc/insert.txt
skip doc/user_06.txt (needs 8.2.3562)
partial skip doc/syntax.txt (needs 8.2.3562)
Diffstat (limited to 'runtime/ftplugin/mail.vim')
| -rw-r--r-- | runtime/ftplugin/mail.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/ftplugin/mail.vim b/runtime/ftplugin/mail.vim index 2a6bf4c046..f12022305f 100644 --- 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 "> " |