Exiting
command | describe |
---|---|
:qa | Close all files |
:qa! | Close all files, abandon changes |
:w | Save |
:wq / :x | Save and close file |
:q | Close file |
:q! | Close file, abandon changes |
ZZ | Save and quit |
ZQ | Quit without checking changes |
Esc / <C-[> | Exit insert mode |
<C-C> | Exit insert mode, and abort current command |
Clipboard
command | describe |
---|---|
x | Delete character |
dd | Delete line (Cut) |
yy | Yank line (Copy) |
p | Paste |
P | Paste before |
“*p / “+p | Paste from system clipboard |
“*y / “+y | Paste to system clipboard |
Visual mode
command | describe |
---|---|
v | Enter visual mode |
V | Enter visual line mode |
<C-V> | Enter visual block mode |
In visual mode
command | describe |
---|---|
d / x | Delete selection |
s | Replace selection |
y | Yank selection (Copy) |