annotate runtime/ftplugin/mail.vim @ 14664:8770189c3e22 v8.1.0345

patch 8.1.0345: cannot get the window id associated with the location list commit https://github.com/vim/vim/commit/c9cc9c78f21caba7ecb5c90403df5e19a57aa96a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 2 15:18:42 2018 +0200 patch 8.1.0345: cannot get the window id associated with the location list Problem: Cannot get the window id associated with the location list. Solution: Add the "filewinid" argument to getloclist(). (Yegappan Lakshmanan, closes #3202)
author Christian Brabandt <cb@256bit.org>
date Sun, 02 Sep 2018 15:30:08 +0200
parents fdb8a9c7bd91
children babd9f1dbe12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Mail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " Last Change: 2012 Nov 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
12 let b:undo_ftplugin = "setl modeline< tw< fo< comments<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 7
diff changeset
14 " Don't use modelines in e-mail messages, avoid trojan horses and nasty
e63691e7c504 updated for version 7.1a
vimboss
parents: 7
diff changeset
15 " "jokes" (e.g., setting 'textwidth' to 5).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 setlocal nomodeline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " many people recommend keeping e-mail messages 72 chars wide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if &tw == 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 setlocal tw=72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Set 'formatoptions' to break text lines and keep the comment leader ">".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 setlocal fo+=tcql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
26 " Add n:> to 'comments, in case it was removed elsewhere
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
27 setlocal comments+=n:>
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
28
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1121
diff changeset
29 " Add mappings, unless the user doesn't want this.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if !exists("no_plugin_maps") && !exists("no_mail_maps")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Quote text by inserting "> "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if !hasmapto('<Plug>MailQuote')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 vmap <buffer> <LocalLeader>q <Plug>MailQuote
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 nmap <buffer> <LocalLeader>q <Plug>MailQuote
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 vnoremap <buffer> <Plug>MailQuote :s/^/> /<CR>:noh<CR>``
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 nnoremap <buffer> <Plug>MailQuote :.,$s/^/> /<CR>:noh<CR>``
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 endif