From 28013ec4ce9a4f837778d891dc438ff989cb6e9a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 11:22:04 +1200 Subject: Run repeat blank squeeze on mail reply --- vim/after/ftplugin/mail.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vim') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 649c87e1..fbe0d3af 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -46,10 +46,11 @@ setlocal formatoptions+=w let b:undo_ftplugin .= '|setlocal formatoptions<' " Define what constitutes a 'blank line' for the squeeze_repeat_blanks.vim -" plugin, if loaded, to include leading quotes and spaces +" plugin, if loaded, to include leading quotes and spaces, and then do it if exists('loaded_squeeze_repeat_blanks') let b:squeeze_repeat_blanks_blank = '^[ >]*$' let b:undo_ftplugin .= '|unlet b:squeeze_repeat_blanks_blank' + silent SqueezeRepeatBlanks endif " Stop here if the user doesn't want ftplugin mappings -- cgit v1.2.3