aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-30 20:24:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-30 20:24:21 +1300
commit794c4632c82b46c76c7638ab125921c0e22d6799 (patch)
tree4bd97912d58d541ac65549e6f1ac128667fca276
parentMove ft=mail start suggestion to autoload (diff)
downloaddotfiles-794c4632c82b46c76c7638ab125921c0e22d6799.tar.gz
dotfiles-794c4632c82b46c76c7638ab125921c0e22d6799.zip
Move strict quote mappings beneath var guard
-rw-r--r--vim/after/ftplugin/mail.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim
index 200234c6..f1d9f0cf 100644
--- a/vim/after/ftplugin/mail.vim
+++ b/vim/after/ftplugin/mail.vim
@@ -11,10 +11,6 @@ SuggestStart
" Normalise quoting
command -buffer -bar -range=% StrictQuote
\ call mail#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
@@ -62,6 +58,12 @@ xnoremap <buffer> <expr> <LocalLeader>Q
let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>Q'
\ . '|xunmap <buffer> <LocalLeader>Q'
+" Mappings for enforcing strict quoting
+nnoremap <LocalLeader>s
+ \ :StrictQuote<CR>
+xnoremap <LocalLeader>s
+ \ :StrictQuote<CR>
+
" Maps using autoloaded function for quoted paragraph movement
nnoremap <buffer> <silent> <LocalLeader>[
\ :<C-U>call mail#NewBlank(v:count1, 1, 0)<CR>