Exiting

commanddescribe
:qaClose all files
:qa!Close all files, abandon changes
:wSave
:wq / :xSave and close file
:qClose file
:q!Close file, abandon changes
ZZSave and quit
ZQQuit without checking changes
Esc / <C-[>Exit insert mode
<C-C>Exit insert mode, and abort current command

Clipboard

commanddescribe
xDelete character
ddDelete line (Cut)
yyYank line (Copy)
pPaste
PPaste before
“*p / “+pPaste from system clipboard
“*y / “+yPaste to system clipboard

Visual mode

commanddescribe
vEnter visual mode
VEnter visual line mode
<C-V>Enter visual block mode

In visual mode

commanddescribe
d / xDelete selection
sReplace selection
yYank selection (Copy)

vim_cheat_sheet