From 9f48fbb4fbef55040a8c28bf17f13bbde6b24730 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 Aug 2018 11:08:12 +1200 Subject: 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. --- vim/after/ftplugin/mail.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vim/after') 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 [' \ . '|ounmap ]' \ . '|xunmap [' \ . '|xunmap ]' + +" Quick map to strip multiple blank lines in the entire buffer; this comes up +" a lot when replying to stripped HTML mail +nnoremap x + \ :call mail#ContractMultipleBlankLines() -- cgit v1.2.3