Vim Recall繁體中文

Move to the other end of a Visual selection

O

Example

Visual block 0 / 1
abcd
efgh
keep
Cursor on line 2, column 2 · Block selection

Move to the other end of a Visual selection.

Before & after
Before
abcd
efgh
keep
Cursor on line 2, column 2 · Block selection
After
abcd
efgh
keep
Cursor on line 2, column 1 · Block selection

Start in Visual block 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

In a Visual block, O moves to the other corner on the same line. For character or line selections, it acts like o and moves to the other end.