Vim / Neovim CLI Startup, Diff, and Recovery/Pull or push changes across diff panes

Take changes from one side or send them to the other.

Section: Diff mode

Pull or push changes across diff panes

vim
vim
:diffget  :diffput
Explanation

Helpful during manual merges and conflict resolution.

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
Start in diff mode
Open two files side by side for comparison.
OpenIn sheetbashsame section
Jump between diff hunks
Move to the next or previous change region.
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