Mission 52 / 52• Visual Mode
Visual Line Operators
Operating on multiline blocks in visual line mode: select the lines with `V`, then press `d` to cut or `y` to copy, followed by `p` to paste.
Visual line operations
- ddelete all selected lines
- yyank (copy) all selected lines
- cchange selected lines
1// Block to duplicate2const serviceA = initializeService("A");3serviceA.connect();Select the two service lines with `V` and `j`, press `y` to yank, move down and press `p` to duplicate the block!
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// Block to duplicate2const serviceA = initializeService("A");3serviceA.connect();NORMAL
00:00
Nice work — you completed all lessons!Back to start