diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 14:16:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 14:16:37 +1200 |
commit | 84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3 (patch) | |
tree | 9f02a92e5354f789ec488e9bc5e05289cdf9e468 | |
parent | Update vim-squeeze-repeat-bolanks to v0.3.0 (diff) | |
download | dotfiles-84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3.tar.gz dotfiles-84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3.zip |
Prevent unneeded capture of group in greet regex
-rw-r--r-- | vim/after/ftplugin/mail.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 15277f7b..2dcdeffa 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -8,7 +8,7 @@ if line('.') == 1 && col('.') == 1 " 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*$' + if getline('.') =~? '^>\s*\%(<hello\|hey\+\|hi\)\%(\s\+\S\+\)\=[,;]*\s*$' delete while getline('.') =~# '^>\s*$' delete |