From 35729ea64429e647fd87775e06e6a2ebb6cbdb1e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 24 May 2019 11:29:57 +1200 Subject: Don't strip tabs after angle quotes Don't solve problems we don't have yet --- vim/after/ftplugin/mail.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/after') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index b14bb859..47c82bb6 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -45,7 +45,7 @@ for lnum in range(1, line('$')) let line = getline(lnum) " Get the leading quote string, if any; stop if there isn't one - let quote = matchstr(line, '^[> \t]\+') + let quote = matchstr(line, '^[> ]\+') if strlen(quote) == 0 continue endif @@ -54,7 +54,7 @@ for lnum in range(1, line('$')) let quote = substitute(quote, '[^>]', '', 'g') " Re-set the line - let line = substitute(line, '^[> \t]\+', quote, '') + let line = substitute(line, '^[> ]\+', quote, '') call setline(lnum, line) endfor -- cgit v1.2.3