Back to Lessons
Sign inintermediate

Delete Lines

Delete entire lines with dd

Open companion guide

Goals

0/2
  • Delete current line with dd
  • Delete to end of line with D
Keys 0 · par 10

Instructions

  1. 1.Delete the lines marked "DELETE ME" using dd
  2. 2.Keep only the clean lines
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 Lines in real editing

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

Quick Command Cheatsheet
  • delete
  • lines
  • dd
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, lines, dd 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.