From 3b529f22fea622e7d4267927a688058d5c7a4500 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Aug 2018 09:39:48 +1200 Subject: Strip generic greetings from quoted mail --- vim/after/ftplugin/mail.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 16c228cd..2917425d 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -11,6 +11,15 @@ if line('.') == 1 && col('.') == 1 " no quote, which is fine call search('\m^>', 'c') + " Check this line to see if it's a generic hello-name greeting that we can + " just strip out; delete the following line too, if it's blank + if getline('.') =~? '^>\s*\%($' + delete + endif + endif + " Now move to the first quoted or unquoted blank line call search('\m^>\=$', 'c') -- cgit v1.2.3