-
Notifications
You must be signed in to change notification settings - Fork 1
vim cheat sheet
Antonio Dias edited this page Jul 27, 2023
·
1 revision
Key combination | Action |
---|---|
[c | Previous difference |
]c | Next difference |
Key combination | Action |
---|---|
do | Obtain difference |
Pull the changes to the current file. | |
dp | Put difference |
Push the changes to the other file. | |
:diffupdate | Re-scan the files for differences. |
ZQ | Quit without checking changes |
Key combination | Action |
---|---|
zo or zO | Open |
zc or zC | Close |
za or 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 |
Key combination | Action |
---|---|
~ | Changes the case of current character |
guu | Change current line from upper to lower |
gUU | Change current LINE from lower to upper |
guw | Change to end of current WORD from upper to lower |
guaw | Change all of current WORD to lower |
gUw | Change to end of current WORD from lower to upper |
gUaw | Change all of current WORD to upper |
g |
Invert case to entire line |
g~w | Invert case to current WORD |
guG | Change to lowercase until the end of document |