section heading text object in markdown

section heading text object in markdown

Content #

Markdown文件的标题格式如下:

Topic One
=========

some text about topic one.

it has multiple paragraphs.

Topic Two
=========

some text about topic two.
after the last.

inside section’s heading:

:onoremap ih :<c-u>execute "normal! ?^==\\+$\r:nohlsearch\rkvg_"<cr>

around section’s heading:

:onoremap ah :<c-u>execute "normal! ?^==\\+$\r:nohlsearch\rg_vk0"<cr>

From #