Vimdiff cheatsheet

Vim is a very efficient text editor. This reference was made for Vim 8.0.

]cNext difference
[cPrevious difference

Editing

doDiff Obtain!
Pull the changes to the current file.
dpDiff Put!
Push the changes to the other file.
:diffupdateRe-scan the files for differences.
ZQQuit without checking changes

Folds

zo / zOOpen
zc / zCClose
za / zAToggle
zvOpen folds for this line
zMClose all
zROpen all
zmFold more (foldlevel += 1)
zrFold less (foldlevel -= 1)
zxUpdate folds

Also see

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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