Skip to content
Vim Learn
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. The challenge proves it once; Practice is a timed run against the clock.

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 against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

Vj

Select two complete lines with V and j.