Mission 50 / 52• Visual Mode
Visual Line Mode
When operating on whole lines of code, character-wise visual mode is too granular.
Pressing capital `V` activates **visual line mode**, selecting whole lines from column 0 to end of line.
Visual line mode
- Venter visual line mode (select whole lines)
- j / kexpand visual line selection down or up
- esccancel visual line mode
Press Enter to start
1function first() {2 return 1;3}4function second() {5 return 2;6}Press `V` on `function first()`, tap `j` two times to highlight the whole 3-line function, and press `d` to delete it cleanly.
Now it's your turn!
0 / 4 tasks complete0.0s / 15s par0 / 13 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 first two lines with Vj.
Show hint
Press V then j.
Press Enter to start
1first();2second();3third();jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next