Vim keyboard shortcuts practice
A timed drill for Vim motions and commands — the same keys, practised until your hands do them without thinking, instead of a cheat sheet you read once and forget.
- 33Vim shortcuts
What is in the drill
- Delete line
d + d - Yank (copy) line
y + y - Go to end of file
G - Go to start of file
g + g - Undo
u - Redo
Ctrl + r - Enter insert mode
i - Save and quit
: + w + q - Quit without saving
: + q + ! - Insert after cursor
a - Insert at end of line
A - Open line below and insert
o - Open line above and insert
O - Paste after cursor
p - Delete character
x - Change word
c + w - Delete word
d + w - Delete inside quotes
d + i + " - Change inside parentheses
c + i + ( - Jump forward one word
w - Jump back one word
b - Go to first non-blank of line
^ - Go to end of line
$ - Jump to matching bracket
% - Search forward
/ - Next search match
n - Search word under cursor
* - Enter visual mode
v - Enter visual line mode
V - Indent line
> + > - Join line below
J - Repeat last change
. - Replace all in file
: + % + s
How it works
Each round shows one shortcut's description; type the keys it names, in order. Get it right and the next one appears immediately, so the drill moves at the speed of your recall, not a timer.