From 2e5f2b861b077193405684fe3c74de20f849ad5f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Jul 2018 23:53:55 +1200 Subject: Replace mail.vim quoting mappings --- vim/autoload/mail.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vim/autoload/mail.vim (limited to 'vim/autoload') diff --git a/vim/autoload/mail.vim b/vim/autoload/mail.vim new file mode 100644 index 00000000..4c21ae38 --- /dev/null +++ b/vim/autoload/mail.vim @@ -0,0 +1,11 @@ +" Quote lines in mail messages +function! mail#Quote() abort + set operatorfunc=mail#QuoteOpfunc + return 'g@' +endfunction +function! mail#QuoteOpfunc(type) abort + for l:li in range(line('''['), line(''']')) + let l:line = getline(l:li) + call setline(l:li, '>'.l:line) + endfor +endfunction -- cgit v1.2.3