Export Vim Diff Highlighting to HTML Safely
Vim’s 2html converter can turn the active diff window into a standalone highlighted HTML snapshot. Use explicit output paths and noninteractive commands, understand the single-window limitation, and batch directory pairs without unsafe deletion or whitespace splitting.