Line and Block Visual
V selects whole lines. Ctrl-V selects rectangles.
V enters linewise Visual: motions extend the selection by whole lines. Ctrl-V enters blockwise Visual: the selection is a rectangle, useful for column edits.
v selects characters. Two more visual modes select differently-shaped regions: V for whole lines, Ctrl-V for rectangles.
| Key | Note |
|---|---|
| V |
| Key | Note |
|---|---|
| Ctrl-V |
Reference
| Key | Selection shape |
|---|---|
| v | Characters from anchor to cursor |
| V | Whole lines |
| Ctrl-V | Rectangle (block) |
Worked example โ V and Ctrl-V
Linewise vs block visual.
Block mode operates on a rectangle โ perfect for tabular data and column edits.
See also: Character Visual Mode, Block Insert and Append, Indent and Auto-Indent