aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/mail.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:40 +1200
commit197bd52242010b7060b132456757ace5294775f2 (patch)
treeb50fa3b3b38bad218448a31fc4d1b18106d91495 /vim/after/ftplugin/mail.vim
parentMerge branch 'release/v1.62.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-1.63.0.tar.gz (sig)
dotfiles-1.63.0.zip
Merge branch 'release/v1.63.0'v1.63.0
* release/v1.63.0: Bump VERSION Add mapping to contract multiple blank lines Convert a few stridx() to alternative forms
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r--vim/after/ftplugin/mail.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim
index 3aa3fec3..df0f043d 100644
--- a/vim/after/ftplugin/mail.vim
+++ b/vim/after/ftplugin/mail.vim
@@ -83,3 +83,8 @@ let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>['
\ . '|ounmap <buffer> <LocalLeader>]'
\ . '|xunmap <buffer> <LocalLeader>['
\ . '|xunmap <buffer> <LocalLeader>]'
+
+" Quick map to strip multiple blank lines in the entire buffer; this comes up
+" a lot when replying to stripped HTML mail
+nnoremap <buffer> <silent> <LocalLeader>x
+ \ :<C-U>call mail#ContractMultipleBlankLines()<CR>