Mission 14 / 52• Basic Operators
Delete Words
The delete operator `d` combines with word motions `w`, `e`, and `b` to prune words effortlessly.
Delete word combinations
- dwdelete from cursor to the start of the next word
- dedelete from cursor to the end of the current word
- dbdelete backward to the start of the previous word
1const badTempOldValue = 42;2function runTask(task, unusedParam, callback) {3 return callback();4}Move your cursor to the start of `unusedParam` and press `dw`. It deletes the word and trailing space cleanly!
Now it's your turn!
- Navigate to each green target across the code snippet.
- Use the motions and techniques learned in this lesson to land accurately on each target.
- See how fast you can complete 10 targets.
0/10
1const badTempOldValue = 42;2function runTask(task, unusedParam, callback) {3 return callback();4}NORMAL
00:00
NextCtrl+jChange Words