Course
Free Trial: 5 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Deleting Text
Basic Text Editing
Task Instructions
Learn basic text deletion commands in Vim
Remove the words 'some unnecessary extra' and 'completely' from the sentence. Use 'x' to delete individual characters and 'dw' to delete whole words.
Learning objectives
- Learn basic deletion with 'x' and 'dw'
- Understand character vs word deletion
- Practice text cleanup operations
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- x Delete characters using x
- dw Delete words using dw
Helpful commands
- x
- Delete character under cursor
- dw
- Delete word from cursor position
- d$
- Delete to end of line
- dd
- Delete entire line
Stuck? Peek at a hint 3 hints · try it on your own first
- 'x' deletes the character under the cursor
- 'dw' deletes from cursor to end of word
- You can use numbers like '3x' to delete 3 characters
This sentence has some unnecessary extra words that need to be removed completely.