aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/markdown.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-15 10:12:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-15 10:12:38 +1200
commit4dd8d125cd401137d18d196e4125aa8fe789d2a0 (patch)
tree273810b45b6cd15d57402340da7978834cd27b55 /vim/after/ftplugin/markdown.vim
parentMerge branch 'release/v1.52.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-4dd8d125cd401137d18d196e4125aa8fe789d2a0.tar.gz
dotfiles-4dd8d125cd401137d18d196e4125aa8fe789d2a0.zip
Merge branch 'release/v1.53.0'v1.53.0
* release/v1.53.0: Bump VERSION Unset g:is_posix when no longer needed Move Perl boilerplate generation to autoload Use consistent format for local leader mappings Rearrange local mappings for mail Add `abort` attribute to autoloaded mail function Move Vim mail functions to autoload Delete multiple blank lines after skipped greeting Add "hey" to generic mail quote greetings
Diffstat (limited to 'vim/after/ftplugin/markdown.vim')
-rw-r--r--vim/after/ftplugin/markdown.vim24
1 files changed, 16 insertions, 8 deletions
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim
index a5c80ca9..cd8873b9 100644
--- a/vim/after/ftplugin/markdown.vim
+++ b/vim/after/ftplugin/markdown.vim
@@ -26,16 +26,24 @@ if exists('g:no_plugin_maps') || exists('g:no_markdown_maps')
finish
endif
-" Mail quote mappings
-nnoremap <buffer> <expr> <LocalLeader>q quote#Quote()
-nnoremap <buffer> <expr> <LocalLeader>qq quote#Quote().'_'
-xnoremap <buffer> <expr> <LocalLeader>q quote#Quote()
-nnoremap <buffer> <expr> <LocalLeader>Q quote#QuoteReformat()
-nnoremap <buffer> <expr> <LocalLeader>QQ quote#QuoteReformat().'_'
-xnoremap <buffer> <expr> <LocalLeader>Q quote#QuoteReformat()
+" Quote operator
+nnoremap <buffer> <expr> <LocalLeader>q
+ \ quote#Quote()
+nnoremap <buffer> <expr> <LocalLeader>qq
+ \ quote#Quote().'_'
+xnoremap <buffer> <expr> <LocalLeader>q
+ \ quote#Quote()
let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>q'
\ . '|nunmap <buffer> <LocalLeader>qq'
\ . '|xunmap <buffer> <LocalLeader>q'
- \ . '|nunmap <buffer> <LocalLeader>Q'
+
+" Quote operator with reformatting
+nnoremap <buffer> <expr> <LocalLeader>Q
+ \ quote#QuoteReformat()
+nnoremap <buffer> <expr> <LocalLeader>QQ
+ \ quote#QuoteReformat().'_'
+xnoremap <buffer> <expr> <LocalLeader>Q
+ \ quote#QuoteReformat()
+let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>Q'
\ . '|nunmap <buffer> <LocalLeader>QQ'
\ . '|xunmap <buffer> <LocalLeader>Q'