Course Lessons
Free Trial: 5 lessons remaining
Unlock Full Access
Deleting Text
Estimated time: 10 minutes
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
This lesson requires you to use specific keystrokes to complete it. Your submission will be evaluated based on whether you used the required keystrokes mentioned below, rather than matching a specific output.
x
Delete characters using x
dw
Delete words using dw
What This Means
- Your solution must include the required keystroke patterns
- The order of keystrokes may matter depending on the exercise
- You'll still need to achieve the expected output
- This helps you practice specific Vim techniques
Helpful commands:
Command | Description |
---|---|
x | Delete character under cursor |
dw | Delete word from cursor position |
d$ | Delete to end of line |
dd | Delete entire line |
Hints
- '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.