aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 14:16:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 14:16:37 +1200
commit84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3 (patch)
tree9f02a92e5354f789ec488e9bc5e05289cdf9e468 /vim
parentUpdate vim-squeeze-repeat-bolanks to v0.3.0 (diff)
downloaddotfiles-84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3.tar.gz
dotfiles-84b1c6b45aaeaf26ab0b99b52d002dea7ea4dce3.zip
Prevent unneeded capture of group in greet regex
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/mail.vim2
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