Basic Operators
Delete Multiple Lines
Use a count with a vertical motion to remove a block.
Counts express repetition before it happens. d2j applies one delete operation over the current line and two lines below it.
Use d{n}j, and d{n}k 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{n}j
- Delete this line and the n lines below it
- d{n}k
- Delete this line and the n lines above it
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.