⚡
Browse

Vim Commands and Motions

Learn what essential Vim commands and motions do, from basic movement to powerful editing.

Code42 items3 levelsDifficulty 3/5
Start training →

Free · no signup · works on any device

Levels

Start easy — harder levels unlock as you improve, or jump ahead anytime.

1
Movement & Modes
15 items
2
Editing
16 items
3
Advanced & Search
11 items

All 42 cards

h
→
move left
j
→
move down
k
→
move up
l
→
move right
i
→
insert before cursor
a
→
append after cursor
w
→
forward one word
b
→
back one word
e
→
end of word
0
→
start of line
$
→
end of line
gg
→
go to first line
G
→
go to last line
Esc
→
return to normal mode
v
→
visual mode
x
→
delete character
dd
→
delete line
yy
→
yank (copy) line
p
→
paste after cursor
P
→
paste before cursor
u
→
undo
Ctrl-r
→
redo
o
→
open line below
O
→
open line above
r
→
replace one character
cw
→
change word
dw
→
delete word
:w
→
save file
:q
→
quit
:wq
→
save and quit
:q!
→
quit without saving
/
→
search forward
?
→
search backward
n
→
next search match
N
→
previous search match
:%s/old/new/g
→
replace all in file
.
→
repeat last command
ciw
→
change inner word
di(
→
delete inside parentheses
dG
→
delete to end of file
>>
→
indent line
%
→
jump to matching bracket

Keep going

Useful Bash One-Liners

Learn what common Bash commands and one-liners actually do, in both directions.

Code32 items

Common Git Commands and What They Do

Learn the essential Git commands and the action each one performs.

Code30 items

Essential Linux/Unix Terminal Commands

Master the core Linux and Unix shell commands and recall exactly what each one does.

Code40 items

Regular Expression Tokens and Their Meanings

Master what each common regular-expression token, anchor, and metacharacter matches.

Code37 items