Converter Web ToolsConverter WebTools

Vim Cheat Sheet — Commands Reference

This Vim cheat sheet lists the essential commands for the Vim / Vi text editor — switching modes, moving the cursor, editing text and saving or quitting.

Modes

KeyAction
iInsert mode (before cursor)
aInsert after cursor
EscBack to normal mode
vVisual select
:Command mode

Move

KeyAction
h j k lLeft, down, up, right
w / bNext / previous word
0 / $Start / end of line
gg / GTop / bottom of file
/textSearch for text
n / NNext / previous match

Edit

KeyAction
xDelete character
ddDelete line
yyYank (copy) line
pPaste
uUndo
Ctrl+rRedo
rReplace one character
cwChange word

Save & quit

CommandAction
:wSave
:qQuit
:wq or :xSave and quit
:q!Quit without saving

Related tools & charts