Vim Recall繁體中文

Select a rectangular block

Ctrl-v

Example

Normal 0 / 3
one two
three four
five six
Cursor on line 1, column 1

Start blockwise Visual mode.

Before & after
Before
one two
three four
five six
Cursor on line 1, column 1
After
one two
three four
five six
Cursor on line 2, column 2 · Block selection

Start in Normal mode. The highlighted area is observed in Vim. Any displayed register boxes show the exact copied or deleted contents.

Details & Vim help

Example replayed in Vim

Start blockwise Visual mode.

Move the cursor to select a rectangle across lines. Many operations, including yank and delete, act on the rectangle; some operators instead affect whole lines. Some terminals intercept this key; Ctrl-q can be an alternative in supported configurations.