QuickRef.
Cheat sheet

Vim Keyboard Shortcuts

The essential Vim commands for moving, editing, and saving without leaving the home row. Commands are grouped by the mode where they apply so you can build muscle memory quickly.

14 shortcuts across 3 groups

Modes
KeysAction
iEnter insert mode before the cursor
aEnter insert mode after the cursor
vEnter visual mode
EscReturn to normal mode
Motion
KeysAction
h j k lMove left, down, up, right
w / bJump forward or back by word
gg / GGo to the first or last line
0 / $Go to line start or end
Edit and save
KeysAction
ddDelete the current line
yyYank (copy) the current line
pPaste after the cursor
uUndo the last change
:wWrite (save) the file
:qQuit the editor

Getting these into muscle memory

A cheat sheet only helps if the bindings move from the page into your hands. The fastest way is to pick two or three shortcuts from a single group above, force yourself to use them for a few days even when the mouse feels quicker, and only then add more. Trying to memorize an entire sheet at once rarely sticks, because none of the bindings get enough repetition to become automatic.

The groups here are ordered by how often you reach for them. Openers and palettes come first because they unlock everything else, then editing and navigation, which is where most of a session is spent. Keep this page open in a tab while you learn, and it will quietly work its way out of your sight and into your fingers.

See also