Vim What?Commands~
~

The ~ command in Vim

Command

toggle case

Toggle the case of the character under cursor and advance. Use g~{motion} to toggle case over a range, g~~ for the whole line, gU to uppercase, gu to lowercase.
Examples

Reference

Official Vim help for ~

Learn every Vim command visually — right in your browser.

Add Vim What? to Chrome — Free

Also on Firefox.

Related commands