diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 18:55:27 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 18:56:17 +1200 |
commit | 2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53 (patch) | |
tree | 409530e3e6402c7cc55ea8952513f08f0e9ce047 /vim/after/ftplugin/mail.vim | |
parent | Don't do :StrictQuote automatically on mail edit (diff) | |
download | dotfiles-2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53.tar.gz dotfiles-2a7e2b14d3046ab05f222a4e0d7173d9e7f97f53.zip |
Add local maps for normalising mail quotes
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r-- | vim/after/ftplugin/mail.vim | 4 |
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 |