-
Download and extract Markdown 1.0.1 from http://daringfireball.net/projects/markdown/.
-
Move “Markdown.pl” to “/usr/local/bin”.
-
To enable utf8 support, add “use utf8;” at the beginning of “Markdown.pl”.
-
To use it from vim, add the following code to “.vimrc”.
nmap \md :%!/usr/local/bin/Markdown.pl --html4tag
- Done. Write markdown text in vim and press “\md” to convert to HTML.
Reference: http://net.tutsplus.com/tutorials/other/vim-essential-plugin-markdown-to-html