3

Vimdiff cheatsheet

 2 years ago
source link: https://devhints.io/vim-diff
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Navigating

]c Next difference [c Previous difference

Editing

do Diff Obtain!
Pull the changes to the current file. dp Diff Put!
Push the changes to the other file. :diffupdate Re-scan the files for differences. ZQ Quit without checking changes

Folds

zo / zO Open zc / zC Close za / zA Toggle zv Open folds for this line zM Close all zR Open all zm Fold more (foldlevel += 1) zr Fold less (foldlevel -= 1) zx Update folds

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK