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

vllllloh

Select the middle word, swap the active end with o, then extend left with h.