diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 11:21:29 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 11:21:29 +1200 |
commit | 68c22abd9f16ed9baf9673a2e125b8c293633cdc (patch) | |
tree | b0e0815b4ae9aa03a87a3452e0fd76cee01d107f /vim/after | |
parent | Add foldexpr function deletion to undo (diff) | |
download | dotfiles-68c22abd9f16ed9baf9673a2e125b8c293633cdc.tar.gz dotfiles-68c22abd9f16ed9baf9673a2e125b8c293633cdc.zip |
Improve opening-greeting strip from mail ftplugin
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 457135ef..c9cd6555 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -6,9 +6,9 @@ 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 any following lines too, if they're blank - if getline('.') =~? '^>\s*\%(<hello\|hey\+\|hi\)\s\+\S\+\s*$' + " Check this line to see if it's a generic hello or hello-name greeting that + " we can just strip out; delete any following lines too, if they're blank + if getline('.') =~? '^>\s*\%(<hello\|hey\+\|hi\)\(\s\+\S\+\)\=[,;]*\s*$' delete while getline('.') =~# '^>$' delete |