From 92bf71ac7773588fbb7460479054d43c121ee7f5 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 12 Nov 2020 21:56:44 +0800 Subject: Add text objects for Markdown fenced code blocks. --- after/ftplugin/markdown.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'after/ftplugin') 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 AddVimFootnote :call markdownfootnotes#VimFootnotes('i') inoremap AddVimFootnote :call markdownfootnotes#VimFootnotes('i') endif + +" Text objects for Markdown code blocks. +xnoremap ic :call text_obj#MdCodeBlock('i') +xnoremap ac :call text_obj#MdCodeBlock('a') +onoremap ic :call text_obj#MdCodeBlock('i') +onoremap ac :call text_obj#MdCodeBlock('a') -- cgit v1.2.3