From 2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Jun 2019 18:55:27 +1200 Subject: Add local maps for normalising mail quotes --- vim/after/ftplugin/mail.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 6b6d4926..2083aaaf 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -73,6 +73,10 @@ function! s:StrictQuote(start, end) abort endfunction command -buffer -bar -range=% StrictQuote \ call s:StrictQuote(, ) +nnoremap s + \ :StrictQuote +xnoremap s + \ :StrictQuote let b:undo_ftplugin .= '|delcommand StrictQuote' " Add a space to the end of wrapped lines for format-flowed mail -- cgit v1.2.3