Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vimdiff mini tutorial

Start vimdiff

vimdiff file1 file2

Command Reference - Essentials

Command Description
ctrl+w ctrl+w move cursor to other window
do diff obtain: get currently marked changes from other window
dp diff put: put currently marked change to other window
zo open fold
zc close fold
:set noscrollbind temporarily disable simultaneous scrolling on both buffers
:set scrollbind reenable simultaneous scrolling
:qa quit all
:wqa save all and quit all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.