Training plan › Selection and objects
Visual mode
v, V and Ctrl+v: select by character, line or block.
Visual mode selects text to apply a command to it: v by character, V by line and Ctrl+v by rectangular block. Once selected, any operator acts on the selection: d deletes, y yanks, > indents, U uppercases. gv reselects the last selection.
6 steps · 5 min · 70 XP
- Character selection: v
- Line selection and indent: V >
- Reselect: gv
- Blocks: Ctrl+v
- Swap ends: o
- Operate on the selection: U