Vim Recall繁體中文

Begin a command-line with the selected lines as a range

:

Example

Visual 0 / 1
one two
three four
Cursor on line 1, column 3 · Character selection

Begin a command-line with the selected lines as a range.

Command line

Prompt
Insertion column
0
Editing mode
Inactive
Completion menu
inactive
Before & after
Before
one two
three four
Cursor on line 1, column 3 · Character selection

Command line

Prompt
Insertion column
0
Editing mode
Inactive
Completion menu
inactive
After
one two
three four
Cursor on line 1, column 1

Command line

Prompt
:'<,'>
Insertion column
6
Editing mode
Insert
Completion menu
inactive

Start in Visual mode. The command-line panel shows the live prompt. A Visual selection supplies its line range.

Details & Vim help

Example replayed in Vim

Begin a command-line with the selected lines as a range. Use in Visual mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.