Mission 16 / 52• Basic Operators
Delete Lines
When an operator key is doubled (like `dd` or `yy`), it applies to the entire current line.
Capital `D` deletes from the cursor position to the line's end.
Line deletion
- dddelete the entire current line
- Ddelete from cursor to the end of the line (d$)
- 2dddelete 2 consecutive lines starting from cursor
1// Old debug logging - please remove2console.log("DEBUG: step 1");3console.log("DEBUG: step 2");4const finalResult = executeWorkflow();Place cursor on a `console.log` line and press `dd`. The whole line vanishes and lines below shift up.
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
1// Old debug logging - please remove2console.log("DEBUG: step 1");3console.log("DEBUG: step 2");4const finalResult = executeWorkflow();NORMAL
00:00
NextCtrl+jDelete Multiple Lines