FANDOM


Tip 49 Printable Monobook Previous Next

created March 14, 2001 · complexity basic · author Anon · version 5.7


You can change the case of letters:

Toggle case "HellO" to "hELLo" with ~.
Uppercase "HellO" to "HELLO" with gU.
Lowercase "HellO" to "hello" with gu.

Examples

~
Toggle case of the character under the cursor, or all visually-selected characters.
3~
Toggle case of the next three characters.
g~~
Toggle case of the current line.
U
Uppercase the visually-selected text.
First press v or V then move to select text.
If you don't select text, pressing U will undo all changes to the current line.
gUU
Change the current line to uppercase.
u
Lowercase the visually-selected text.
If you don't select text, pressing u will undo the last change.
guu
Change the current line to lowercase.
gUaw
Change current word to uppercase.
guaw
Change current word to lowercase.

References

Comments


Community content is available under CC-BY-SA unless otherwise noted.