1. Download and extract Markdown 1.0.1 from http://daringfireball.net/projects/markdown/.

  2. Move “Markdown.pl” to “/usr/local/bin”.

  3. To enable utf8 support, add “use utf8;” at the beginning of “Markdown.pl”.

  4. To use it from vim, add the following code to “.vimrc”.

nmap \md :%!/usr/local/bin/Markdown.pl --html4tag
  1. 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