diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-24 10:44:54 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-24 10:44:54 +1200 |
commit | bec406fab13616af979a9586a5c96718566150de (patch) | |
tree | e3b0949aa9ec9f6aef41edfbb6caae1d358b88fc /vim/after | |
parent | Merge branch 'release/v4.43.0' into develop (diff) | |
download | dotfiles-bec406fab13616af979a9586a5c96718566150de.tar.gz dotfiles-bec406fab13616af979a9586a5c96718566150de.zip |
Make greeting regex even nuttier
Needs to be split into two lines now.
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 fd2c9705..48731b93 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -15,9 +15,9 @@ if line('.') == 1 && col('.') == 1 delete endwhile - " 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*$' + " 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*$' delete " Delete quoted blank lines again |