Diogo Oliveira de Melo

VIM - Generate HTML Files

Most people who enjoy VIM really like the highlighting that VIM does on programming languages like C, PHP, Java and even on LaTeX.

There are a few occasions when you want to paste a source file on your blog. Quite the same thing I did at C++ - Timer. One option is to take advantage of your VIM settings and make VIM generate the HTML file for you.

The command is :TOhtml. Type this command while you are on the file that you want to convert and VIM will split the terminal with the generated HTML.

I hope it’s as useful for you as it is for me :D. Don’t forget to comment.