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
Press Enter to start
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!
0 / 3 tasks complete0.0s / 15s par0 / 20 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Select the two debug lines and replace with ready(); using c. Return to normal mode.
Expected result
ready(); keep();
Show hint
Press V, j, c, type ready();, then Escape.
Press Enter to start
1debugOne();2debugTwo();3keep();jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next