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
1
const badTempOldValue = 42;
2
function 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!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const badTempOldValue = 42;
2
function runTask(task, unusedParam, callback) {
3
return callback();
4
}
NORMAL
00:00
NextCtrl+jChange Words