Toggle case inside a word
g~iw
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2oNe TwoCursor on line 1, column 2oNe TwoCursor on line 1, column 2OnE TwoCursor on line 1, column 1Toggle case inside a word.
Waiting for motion or text object
Toggle case inside a word
Before & after
oNe TwoCursor on line 1, column 2OnE TwoCursor on line 1, column 1Start in Normal mode, at line 1, column 2 (one-based). A two-character operator followed by a text object applies the transformation to that object. Press g~iw.
Details & Vim help
Example replayed in Vim
A two-character operator followed by a text object applies the transformation to that object.