Last Updated: February 25, 2016
·
1.575K
· bonsaiben

Easy underlining of Markdown headings in Vim

Say you have a heading:

Awesome Heading

Type:

yypVr-

and viola!

Awesome Heading
---------------

Use = instead of - for double underline.

So easy!

Create mappings to make it even easier.

map <leader>mh yypVr-
map <leader>mH yypVr=