diff options
| author | jdhao <jdhao@hotmail.com> | 2020-11-12 21:56:44 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-11-12 21:56:44 +0800 |
| commit | 92bf71ac7773588fbb7460479054d43c121ee7f5 (patch) | |
| tree | 6b2376e69ffebe743a30e74bdb31e0a2498eeb87 /after | |
| parent | f68fa62e864b1293d74bc23e4fe7b54746203370 (diff) | |
Add text objects for Markdown fenced code blocks.
Diffstat (limited to 'after')
| -rw-r--r-- | after/ftplugin/markdown.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 33b5f1c..355c067 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -6,3 +6,9 @@ if exists(':FootnoteNumber') nnoremap <buffer> <Plug>AddVimFootnote :<C-U>call markdownfootnotes#VimFootnotes('i')<CR> inoremap <buffer> <Plug>AddVimFootnote <C-O>:<C-U>call markdownfootnotes#VimFootnotes('i')<CR> endif + +" Text objects for Markdown code blocks. +xnoremap <buffer><silent> ic :<C-U>call text_obj#MdCodeBlock('i')<CR> +xnoremap <buffer><silent> ac :<C-U>call text_obj#MdCodeBlock('a')<CR> +onoremap <buffer><silent> ic :<C-U>call text_obj#MdCodeBlock('i')<CR> +onoremap <buffer><silent> ac :<C-U>call text_obj#MdCodeBlock('a')<CR> |
