Skip to content

Instantly share code, notes, and snippets.

@rgsingh
Created July 13, 2015 18:33
Show Gist options
  • Save rgsingh/3b3324dacb10f201e244 to your computer and use it in GitHub Desktop.
Save rgsingh/3b3324dacb10f201e244 to your computer and use it in GitHub Desktop.
Vim diff of two files
#Open two files that need to be diffed
:e file1
Ctrl-w n
:e file2
:windo diffthis
:windo diffoff
Ctrl w t Ctrl w H (horizontal)
Ctrl w t Ctrl w K (vertical)
Ctrl w = (space windows equally)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment