Vim Recall繁體中文

Swap case for the selection

~

Example

Visual 0 / 1
One TWO three
four five six
Cursor on line 1, column 3 · Character selection

Swap case for the selection.

Before & after
Before
One TWO three
four five six
Cursor on line 1, column 3 · Character selection
After
oNE TWO three
four five six
Cursor on line 1, column 1

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

Swap case for the selection. Use in Visual mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.