Learn vi and vim by playing
viHung is a free, interactive vi trainer. You type real keystrokes into a simulated Linux server terminal and get instant feedback, so you stop getting stuck in vi.
12 lessons, 46 drills
- Get out alive: how to exit vi with :q and :q!
- Normal mode and Insert mode
- Saving and quitting: :w, :wq, :x, ZZ
- Moving with h, j, k, l and counts
- Jumping by word, line and file: w, b, e, 0, $, gg, G, :42
- Deleting: x, dw, dd, D
- Undo and redo: u and Ctrl-R
- More ways into Insert mode: a, A, I, o, O
- Copy and paste: yy, p, P
- Search: /, ?, n, N
- Replace: r, cw, :%s/old/new/g
- Server missions: sudo vi, swap files (E325), frozen terminal (Ctrl-S), suspended vi (Ctrl-Z)
Plus an arcade with timed games, a key quiz and a printable key card.