aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:22:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:22:04 +1200
commit28013ec4ce9a4f837778d891dc438ff989cb6e9a (patch)
treea9743546037c41af647b8519876e1f4678de03b7 /vim
parentNormalise quoting in mail (diff)
downloaddotfiles-28013ec4ce9a4f837778d891dc438ff989cb6e9a.tar.gz
dotfiles-28013ec4ce9a4f837778d891dc438ff989cb6e9a.zip
Run repeat blank squeeze on mail reply
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/mail.vim3
1 files changed, 2 insertions, 1 deletions
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