Open two files side by side for comparison.

Section: Diff mode

Start in diff mode

bash
bash
vimdiff old.txt new.txt
nvim -d old.txt new.txt
Explanation

Ideal for merge reviews, code comparisons, and refactors.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Diff mode
Jump between diff hunks
Move to the next or previous change region.
OpenIn sheetvimsame section
Pull or push changes across diff panes
Take changes from one side or send them to the other.
OpenIn sheetvimsame section
Open a file from shell
Start the editor on a file path.
OpenIn sheetbash1 tag match
Recover from a swap file
Open recovery mode for a specific file.
OpenIn sheetbash1 tag match
Open file at a specific line
Jump directly to a target line on startup.
OpenIn sheetbash1 tag match
List recoverable swap files
Show swap files that can be recovered.
OpenIn sheetbash1 tag match