Line and Block Visual

V selects whole lines. Ctrl-V selects rectangles.

Keys: V, Ctrl-V

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.

Linewise Visual
KeyNote
V
Blockwise Visual (rectangular)
KeyNote
Ctrl-V
V โ€” linewise Visual
Ctrl-V โ€” blockwise Visual
Block edits in action

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.

Step 1 ยท
visual.line-block
Step 2 ยท Vjj ยท V then jj โ€” three full lines.
V then jj โ€” three full lines.
Step 3 ยท Esc Ctrl-V jj l ยท Ctrl-V โ€” block of just the digits.
Ctrl-V โ€” block of just the digits.

Block mode operates on a rectangle โ€” perfect for tabular data and column edits.

โ–ถ Try this in the simulator

See also: Character Visual Mode, Block Insert and Append, Indent and Auto-Indent