aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/mail.vim9
1 files changed, 9 insertions, 0 deletions
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*\%(<hello\|hi\)\s\+\S\+\s*$'
+ delete
+ if getline('.') =~# '^>$'
+ delete
+ endif
+ endif
+
" Now move to the first quoted or unquoted blank line
call search('\m^>\=$', 'c')