diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 11:21:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 11:21:43 +1200 |
commit | 60703c3aa0b624cbc2b799d679a11118dca18e7d (patch) | |
tree | 357a1ff211bdcfbdb15a5ec918f0dcc288873678 /vim | |
parent | Improve opening-greeting strip from mail ftplugin (diff) | |
download | dotfiles-60703c3aa0b624cbc2b799d679a11118dca18e7d.tar.gz dotfiles-60703c3aa0b624cbc2b799d679a11118dca18e7d.zip |
Strip trailing blanks after greeting
Diffstat (limited to 'vim')
-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 c9cd6555..81e2e560 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -10,7 +10,7 @@ if line('.') == 1 && col('.') == 1 " 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('.') =~# '^>$' + while getline('.') =~# '^>\s*$' delete endwhile endif |