exercise 2 of 10
delete words
- w jumps to the start of the next word, b back to the previous one.
- d is an operator: it waits for a motion and deletes what the motion covers.
- dw deletes from the cursor to the start of the next word.
Operator + motion is the grammar of Vim. Every later exercise is a new word in it.
try it
goal:
the cat sat on the mat