Begin a command-line with the selected lines as a range
:
Example
Visual 0 / 1Command-line 1 / 1one two
three fourCursor on line 1, column 3 · Character selectionone two
three fourCursor on line 1, column 1Begin a command-line with the selected lines as a range.
Command line
- Prompt
- Insertion column
0- Editing mode
Inactive- Completion menu
inactive
Command line open · edit or submit
Command line
- Prompt
:'<,'>- Insertion column
6- Editing mode
Insert- Completion menu
inactive
Before & after
one two
three fourCursor on line 1, column 3 · Character selectionCommand line
- Prompt
- Insertion column
0- Editing mode
Inactive- Completion menu
inactive
one two
three fourCursor on line 1, column 1Command 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.