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

Ref:
http://stackoverflow.com/questions/5288875/vimdiff-what-are-the-most-frequently-used-commands-shortcuts-that-could-get-a-n

No comments: