Vim Recall繁體中文

Switch from Select to Visual mode for one command

Ctrl-o

Example

Select 0 / 2
one two
three four
five six
Cursor on line 1, column 5 · Character selection

Switch from Select to Visual mode for one command.

Before & after
Before
one two
three four
five six
Cursor on line 1, column 5 · Character selection
After
one two
three four
five six
Cursor on line 1, column 6 · Character selection

Start in Select mode. Select mode is prepared with a character selection. Ctrl-o permits one Visual command; l extends its endpoint, then Vim returns to Select mode without inserting text.

Details & Vim help

Example replayed in Vim

Switch from Select to Visual mode for one command. Start in Select mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.