Tuesday, July 10, 2012

What are the commands commonly used with Vimdiff?

[c = Previous Change
]c = Next Change

zo = Open fold
zc = Close fold

zr = Expand all
zm = Collapse all

do = Get changes of other window to the current window
dp =  Put change of the current window in the other window

:diffupdate :diffu = Recalculate the diff.

Ctrl+w, Ctrl+w = Switch cursor to other window


No comments: