Save vimdiff output?

danns87 picture danns87 · Sep 19, 2011 · Viewed 23.9k times · Source

I google'd this multiple times in the past but I've never found an answer. Is there a way to save vimdiff's output (preferably while maintaining colors, highlights, etc.)? I'd like to send this one output file to other people and tell them "just open this file, here are the differences, side by side and highlighted".

If there are better alternatives to vimdiff for this purpose, I'm open to suggestions - something that would work on both Windows and Linux platforms is ideal.

Answer

Raimondi picture Raimondi · Sep 20, 2011

Vim can export to HTML, see:

:help :TOhtml