Back to Lessons
Sign inintermediate

Delete Multiple Lines

Delete multiple lines at once with count + dd

Open companion guide

Goals

0/2
  • Delete 2 lines with 2dd
  • Delete 3 lines with 3dd
Keys 0 · par 10

Instructions

  1. 1.Use 3dd to delete the three BAD lines at once
  2. 2.Count before dd tells how many lines to delete
Quick KeysNORMAL
h j k lMove cursor
w b eWord movement
i a oEnter insert
dDelete
yYank (copy)
pPaste
uUndo
vVisual mode
:Command mode
/Search

Community pulse

Weekly top score
Leaderboard warming up...
Daily challenge
Loading challenge...
Vim mode: normal

Practice buffer · reset restarts the lesson (not vim u)

Lesson Companion

Use Delete Multiple Lines in real editing

This companion guide helps you complete Delete Multiple Lines with fewer mistakes and better command fluency.

Quick Command Cheatsheet
  • delete
  • counts
When to Use This Motion/Operator

Use this lesson whenever you need to apply precise changes instead of entering long Insert-mode edits with fewer keystrokes.

  • Prefer this over arrow-key micro-movements before each edit.
  • Use this pattern whenever you're working inside Editing & Operators tasks.
  • Reach for delete, counts when this pattern appears.
Common Mistakes
  • Staying in Insert mode after making a change instead of returning to Normal mode.
  • Chaining several keystrokes for an edit a single operator+motion combo would do.
FAQ

How long should this lesson take?

Target completion is 30 seconds, but correctness matters more than speed at first.

Should I move to the next lesson if my score is low?

Revisit the specific commands you missed rather than replaying the whole lesson — targeted practice closes gaps faster at this level.