aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 18:55:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 18:56:17 +1200
commit2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53 (patch)
tree409530e3e6402c7cc55ea8952513f08f0e9ce047
parent07e5bb7884301d8f952f630aad090a6b03448295 (diff)
downloaddotfiles-2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53.tar.gz
dotfiles-2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53.zip
Add local maps for normalising mail quotes
-rw-r--r--vim/after/ftplugin/mail.vim4
1 files changed, 4 insertions, 0 deletions
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(<q-line1>, <q-line2>)
+nnoremap <LocalLeader>s
+ \ :StrictQuote<CR>
+xnoremap <LocalLeader>s
+ \ :StrictQuote<CR>
let b:undo_ftplugin .= '|delcommand StrictQuote'
" Add a space to the end of wrapped lines for format-flowed mail