Save vimdiff output?
Vim can export to HTML, see:
:help :TOhtml
To compare two files and write out the result to a third file "HTML based". Open a terminal and run this command:
vimdiff file1.txt file2.txt -c TOhtml -c 'w! diff.html' -c 'qa!'