Character Visual Mode

v โ€” select first, act second.

Keys: v, o

v enters character-wise visual mode. Move to extend the selection. Press an operator (d, c, y, โ€ฆ) to act on it.

Character visual mode

Visual mode flips the grammar around. Instead of "verb then noun" (dw), you do "noun then verb": select first, then act. v starts the selection, motions extend it, and an operator finishes the job.

Enter visual mode
KeyNote
{key:v}
Select two words, delete them
KeyNote
{key:v}
{key:w}
{key:w}
{key:d}
Switch which end of the selection moves
KeyNote
{key:o}
v โ€” character visual mode
o โ€” switch endpoints

Reference

Key Action
v Enter character-wise visual mode
o Swap cursor and anchor
Esc Leave visual mode without acting
gv Re-select last visual range
`<, `> Marks for selection start/end

Worked example โ€” v and motion

Character-wise visual selection.

Step 1 ยท
visual.char
Step 2 ยท vw ยท vw โ€” selected through next word.
vw โ€” selected through next word.
Step 3 ยท d ยท d โ€” delete the selection.
d โ€” delete the selection.

Visual mode picks a range first, then you apply an operator. Useful when the right motion is hard to compose.

โ–ถ Try this in the simulator

See also: Line and Block Visual, Visual-Mode Tricks, The Three Visual Modes, Swap and Adjust Endpoints