Getting Fast: Move & Edit
Moving and Editing Like a Pro
All of these work in Normal mode (press Esc first). No arrow-key marathons required.
Move:
| Key | Moves to |
|---|---|
h j k l | left, down, up, right |
w / b | next / previous word |
0 / $ | start / end of line |
gg / G | top / bottom of file |
:42 | jump to line 42 |
Edit (Normal mode):
| Key | Does |
|---|---|
x | delete one character |
dd | delete (cut) whole line |
yy | yank (copy) whole line |
p | paste after cursor |
u | undo |
Ctrl+r | redo |
/word | search forward for word (n = next) |
Tip: Commands combine with counts:3dddeletes 3 lines,5jmoves down 5. This composability is vim's superpower - you build complex edits from tiny verbs.
Analogy: Vim is a language:d(delete) +w(word) =dw"delete word".y(yank) +y= copy line. Once you think in verbs + motions, you stop memorizing and start speaking it.