Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Practice Moderate 10 min

Precise Deletion Techniques

Task Instructions

Master deletion commands for efficient text removal

Clean up the configuration file using appropriate deletion commands. Use 'x' for single characters, 'dw' for words, 'dd' for entire lines, and 'd0' or 'd$' for partial lines.

Learning objectives

  • Master character and word deletion
  • Learn line-based deletion commands
  • Develop precise editing skills

Required keystrokes

Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.

  • x Use x to delete characters
  • d Use d with motions

Helpful commands

x
Delete character under cursor
X
Delete character before cursor
dw
Delete word
dd
Delete entire line
d$
Delete to end of line
d0
Delete to beginning of line
D
Delete to end of line (shortcut)
Stuck? Peek at a hint 3 hints · try it on your own first
  • x deletes character under cursor, X deletes before cursor
  • dw deletes to start of next word, de deletes to end of current word
  • dd deletes entire line, D deletes from cursor to end of line
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit