Visual select the text, then U for uppercase or u for lowercase. To swap all casing in a visual selection, press ~ (tilde).
Without using a visual selection, gU
will make the characters in motion
uppercase, or use gu
for lowercase.
For more of these, see Section 3 in Vim's change.txt help file.