Skip to content
Vim Learn
Learn/

Switch Visual Selection Ends

48 / 51

Visual Mode

Switch Visual Selection Ends

Move the opposite edge of a selection with o.

o swaps the cursor and anchor without changing the selection. This corrects the wrong edge without rebuilding the range.

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 mode to select characters
o
Swap which end of the selection the cursor 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.

vllllloh

Make a selection, swap its active end with o, then extend left.