Mission 51 / 52• Visual Mode

Switch Visual Line Ends

Just like in regular visual mode, pressing `o` in visual line mode toggles the cursor between the top and bottom selected lines.

Toggle line selection ends

  • ojump between top and bottom lines of visual line selection
1
const a = 1;
2
const b = 2;
3
const c = 3;
4
const d = 4;

Highlight lines with `V` and `j`, then hit `o` and `k` to expand upward.

Now it's your turn!

0 / 3 tasks complete0.0s / 11s par0 / 10 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 middle two lines with Vj and switch active line cursor with o.

Show hint

Press V, j, then o.

1
first();
2
second();
3
third();
4
fourth();
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next