Mercurial > vim
annotate runtime/ftplugin/mail.vim @ 32975:71cbad0921c9
runtime: Remove Brams name from a few more runtime files (#12780)
Commit: https://github.com/vim/vim/commit/e8d6f03f6a61f60de6893253621d057f63dd6a23
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Aug 23 20:23:07 2023 +0100
runtime: Remove Brams name from a few more runtime files (https://github.com/vim/vim/issues/12780)
syntax/model.vim: minor wording improvement
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 24 Aug 2023 07:33:28 +0200 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: Mail | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
26100
diff
changeset
|
3 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
26100
diff
changeset
|
4 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
26100
diff
changeset
|
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 6 |
7 " Only do this when not done yet for this buffer | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 let b:did_ftplugin = 1 | |
12 | |
3967 | 13 let b:undo_ftplugin = "setl modeline< tw< fo< comments<" |
7 | 14 |
1121 | 15 " Don't use modelines in e-mail messages, avoid trojan horses and nasty |
16 " "jokes" (e.g., setting 'textwidth' to 5). | |
7 | 17 setlocal nomodeline |
18 | |
19 " many people recommend keeping e-mail messages 72 chars wide | |
20 if &tw == 0 | |
21 setlocal tw=72 | |
22 endif | |
23 | |
24 " Set 'formatoptions' to break text lines and keep the comment leader ">". | |
25 setlocal fo+=tcql | |
26 | |
3967 | 27 " Add n:> to 'comments, in case it was removed elsewhere |
28 setlocal comments+=n:> | |
29 | |
26100 | 30 " .eml files are universally formatted with DOS line-endings, per RFC5322. |
31 " If the file was not DOS the it will be marked as changed, which is probably | |
32 " a good thing. | |
33 if expand('%:e') ==? 'eml' | |
34 let b:undo_ftplugin ..= " fileformat=" .. &fileformat | |
35 setlocal fileformat=dos | |
36 endif | |
37 | |
2034 | 38 " Add mappings, unless the user doesn't want this. |
7 | 39 if !exists("no_plugin_maps") && !exists("no_mail_maps") |
40 " Quote text by inserting "> " | |
41 if !hasmapto('<Plug>MailQuote') | |
42 vmap <buffer> <LocalLeader>q <Plug>MailQuote | |
43 nmap <buffer> <LocalLeader>q <Plug>MailQuote | |
44 endif | |
45 vnoremap <buffer> <Plug>MailQuote :s/^/> /<CR>:noh<CR>`` | |
46 nnoremap <buffer> <Plug>MailQuote :.,$s/^/> /<CR>:noh<CR>`` | |
47 endif |