Vim function for markdown maruku users
For vim users who use markdown or maruku and need a little help surrounding words.
This function goes into your vimrc.
I’ve mapped it to “,m” in visual mode.
Select a word or line or block, press ,m
You are prompted for a char or chars. These chars are placed on both sides of the visually
I use HTML.vim, for most serious work
but for simple NOTES, TODO, CHANGELOG, etc files I use markdown, and this helps a lot.
It’s a copy of a function called VisualHTMLTagWrap.