Swap case for the selection
~
Example
Visual 0 / 1Normal 1 / 1One TWO three
four five sixCursor on line 1, column 3 · Character selectionoNE TWO three
four five sixCursor on line 1, column 1Swap case for the selection.
Swap case for the selection
Before & after
One TWO three
four five sixCursor on line 1, column 3 · Character selectionoNE TWO three
four five sixCursor on line 1, column 1Start 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.