aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-29 11:08:12 +1200
commit9f48fbb4fbef55040a8c28bf17f13bbde6b24730 (patch)
treef732267064e4ecb893349b4548345c0f66de56bb /vim/after/ftplugin
parent2560f9a91ccc3c269851fb25100f0836a1dbcb67 (diff)
downloaddotfiles-9f48fbb4fbef55040a8c28bf17f13bbde6b24730.tar.gz
dotfiles-9f48fbb4fbef55040a8c28bf17f13bbde6b24730.zip
Add mapping to contract multiple blank lines
This should be a command, and may very well be useful outside of mail contexts, but this will do OK for now.
Diffstat (limited to 'vim/after/ftplugin')
-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>