Few notes on vim diff

Start up diff: vimdiff or vim -d (requires full install not vim-tiny)
If you load up two files in splits (:vs or :sp), you can do :diffthis on each window and achieve a diff of files that were already loaded in buffers
:diffoff can be used to turn off the diff mode.
do – Get changes from other window into the current window.
dp – Put the changes from current window into the other window.
]c – Jump to the next change.
[c – Jump to the previous change.
Ctrl W + Ctrl W – Switch to the other split window.

Published by

Rich

Just another IT guy.

Leave a Reply

Your email address will not be published. Required fields are marked *