aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-13 23:53:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-13 23:53:55 +1200
commit2e5f2b861b077193405684fe3c74de20f849ad5f (patch)
tree831f5f068dc234b9f98b5f60ae3ada338058fc7f /vim/autoload
parent368a2dbab586406520b6693dad46ea90e718c8b1 (diff)
downloaddotfiles-2e5f2b861b077193405684fe3c74de20f849ad5f.tar.gz
dotfiles-2e5f2b861b077193405684fe3c74de20f849ad5f.zip
Replace mail.vim quoting mappings
Diffstat (limited to 'vim/autoload')
-rw-r--r--vim/autoload/mail.vim11
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