Basic Operators
Introduction to Operators
Compose an action with a motion to describe an edit.
Vim editing behaves like a language: an operator is the verb and a motion supplies its range. Learning a new motion improves every operator you already know.
Use d, c, and y in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.
Keys in this lesson
- d
- Delete operator, waiting for a motion or text object
- c
- Change operator, deleting a range then inserting
- y
- Yank (copy) operator, waiting for a motion or text object
Practice to learn it. Test to prove it.
Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.