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 duplicate
2
const serviceA = initializeService("A");
3
serviceA.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!

  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
// Block to duplicate
2
const serviceA = initializeService("A");
3
serviceA.connect();
NORMAL
00:00
Nice work — you completed all lessons!Back to start