How to convert lower case to upper case or vice versa in vi
-
:set upper/lower on
-
Use ~
-
:/s lower to upper
-
None
B
Correct answer
Explanation
The tilde (~) key in vi toggles the case of the character under the cursor - if it's lowercase it becomes uppercase, and vice versa. Options A and C reference non-existent vi commands. This is a quick way to change case without entering insert mode.