Skip to content
Vim
Learn/

Switch Visual Line Ends

50 / 51

Visual Mode

Switch Visual Line Ends

Use o to adjust the other edge of a linewise selection.

The same endpoint swap works linewise. After o, vertical motions contract or extend from the previously anchored side.

Use V, and o in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

V
Enter Visual Line mode to select whole lines
o
Swap which end of the linewise selection moves
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

Vjjok

Select three lines downward, swap ends with o, then extend upward with k.