Outputting VIM buffer as HTML

Published: Wednesday, Dec 26, 2007 Last modified: Friday, May 24, 2024

This tip applies for escaping those pesky <> angled brackets.

TOhtml is not a built in, it’s a plugin:

:let html_use_css = 1


And of course the help in vim tells you much more:

:help TOhtml

Thanks to #vim on Freenode for the tip.