Skip to content

Instantly share code, notes, and snippets.

@Linda-chan
Last active December 6, 2018 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Linda-chan/71442114b7bf8c72f81fc85956f66dff to your computer and use it in GitHub Desktop.
Save Linda-chan/71442114b7bf8c72f81fc85956f66dff to your computer and use it in GitHub Desktop.
Most useful hotkeys for visual comparsion in vim

vimdiff hotkeys

Most useful:

]c       – next difference
[c       – prev difference

dp       – copy left to right
do       – copy right to left

zr       – unfold all
ctrl+w r – switch pane

Running:

vimdiff file1 file2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment