Vim Recall繁體中文

Append after a Visual block

A

Example

Visual block 0 / 3
one
two
Cursor on line 2, column 4 · Block selection

Append text to the selected block lines.

Before & after
Before
one
two
Cursor on line 2, column 4 · Block selection
After
one;
two;
Cursor on line 1, column 1

Start in Visual mode. Select a block covering both lines, press $ then A, type ;, and press Esc.

Details & Vim help

Example replayed in Vim

Append text to the selected block lines.

In blockwise Visual mode, A starts insertion after the right edge. Use $ while selecting when you want the end of each line, even when line lengths differ; finish with Esc.