diff options
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 48731b93..8a8e82fc 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -17,7 +17,11 @@ if line('.') == 1 && col('.') == 1 " Check this line to see if it's a generic greeting that we can just strip " out; delete any following lines too, if they're blank - if getline('.') =~? '^>\s*\%(<hello\|hey\+\|hi\|\%(good\s\+\)\=\%(morning\|afternoon\|evening\)\)\%(\s\+\S\+\)\=[,;]*\s*$' + if getline('.') =~? '^> *' + \ . '\%(h[eu]llo\+\|hey\+\|hi\+\|sup\|what''s up' + \ . '\|\%(good \)\=\%(morning\|afternoon\|evening\)\)' + \ . '\%( \a\+\)\=' + \ . '[[:punct:]]* *$' delete " Delete quoted blank lines again |