Swap and Adjust Endpoints

o jumps to the other end. O switches corners in block mode.

Keys: o, O

While in visual mode, o swaps the cursor between the start and end of the selection โ€” letting you adjust either endpoint without restarting. In visual-block mode, O swaps the diagonal corner.

Once in visual mode, the cursor sits at one end of the selection โ€” and that's the only end you can extend. The o key swaps which end is active.

Adjust the start of a selection
KeyNote
{key:v}Enter visual mode
{key:j}Extend down past where you want
{key:j}Too far?
{key:o}Hop to the other end
{key:k}Now adjust the start with motions

Watch

See also: The Three Visual Modes, Re-Select โ€” gv