Getting started
Navigating
Shortcut | Description |
---|---|
]c |
Next difference |
[c |
Previous difference |
Editing
Shortcut | Description |
---|---|
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
Shortcut | Description |
---|---|
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 |
Also see
- Vim cheatsheet (vim.rotrr.com)
- Vim documentation (vimdoc.sourceforge.net)
- Interactive Vim tutorial (openvim.com)
0 Comments for this cheatsheet. Write yours!