vim – Convert Code to HTML

You can very easily create a HTML version of your code (including the style and colorscheme you are using) with this simple vim command (in command mode):


(That is, hit escape, then type  “:TOhtml” without the quotes, and hit enter)

If you’re working on a file named  myfile.c, vim will create a HTML version of it in the same directory, named myfile.c.html.


Leave a Reply