Created
February 11, 2010 11:57
-
-
Save andrewmcdonough/301454 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add these two lines to your .vimrc to get shortcuts h1 and h2 to create markdown headers with a nice length. | |
# Works by coping and pasting the current line, then substituting any character with a = (for h1) or - (for h2) | |
:map h1 yyp:s/./=/g<ENTER> | |
:map h2 yyp:s/./-/g<ENTER> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment