1 " Vim filetype plugin file
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2007 Apr 30
6 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin")
10 let b:did_ftplugin = 1
12 let b:undo_ftplugin = "setl modeline< tw< fo<"
14 " Don't use modelines in e-mail messages, avoid trojan horses and nasty
15 " "jokes" (e.g., setting 'textwidth' to 5).
18 " many people recommend keeping e-mail messages 72 chars wide
23 " Set 'formatoptions' to break text lines and keep the comment leader ">".
26 " Add mappings, unless the user didn't want this.
27 if !exists("no_plugin_maps") && !exists("no_mail_maps")
28 " Quote text by inserting "> "
29 if !hasmapto('<Plug>MailQuote')
30 vmap <buffer> <LocalLeader>q <Plug>MailQuote
31 nmap <buffer> <LocalLeader>q <Plug>MailQuote
33 vnoremap <buffer> <Plug>MailQuote :s/^/> /<CR>:noh<CR>``
34 nnoremap <buffer> <Plug>MailQuote :.,$s/^/> /<CR>:noh<CR>``