Skip to content

Diffing with Vim

Mayuresh Kadu edited this page Jun 28, 2017 · 1 revision

Cheat sheet for keystrokes, vim options, etc for working with file differences using Vim (better known as vimdiff).

vimdiff keystroke commands

]c            - next difference
[c            - previous difference
do            - diff obtain
dp            - diff put
zo            - open folded text
zc            - close folded text
:diffupdate   - re-scan the files for differences
<Ctrl> ww     - Switch between windows
:set diffopt+=iwhite    - ignore whitespaces in diff
:set syn=ff   - switch off colours in current window

References

Clone this wiki locally