diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-13 23:53:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-13 23:53:55 +1200 |
commit | 2e5f2b861b077193405684fe3c74de20f849ad5f (patch) | |
tree | 831f5f068dc234b9f98b5f60ae3ada338058fc7f /vim/autoload | |
parent | Upgrade put_blank_lines.vim plugin (diff) | |
download | dotfiles-2e5f2b861b077193405684fe3c74de20f849ad5f.tar.gz dotfiles-2e5f2b861b077193405684fe3c74de20f849ad5f.zip |
Replace mail.vim quoting mappings
Diffstat (limited to 'vim/autoload')
-rw-r--r-- | vim/autoload/mail.vim | 11 |
1 files changed, 11 insertions, 0 deletions
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 |