~
Toggles case of the character under the cursor.
4~
Toggles case of the next four characters.
g~3w
Toggles case of the next three words.
g~iw
Toggles case of the inner word.
g~$
Toggles case of all the characters to the end of the line.
g~~
Toggles case of all the characters of the current line.
gUiw
Switches to upper case all of the characters of the inner word.
gUU
or VU
Switches to upper case all the characters of the current line.
You can replace U
by u
to lower the case of the characters.