Created
July 13, 2015 18:33
-
-
Save rgsingh/3b3324dacb10f201e244 to your computer and use it in GitHub Desktop.
Vim diff of two files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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