You can change the case of text:
Toggle case "HellO" to "hELLo" with g~ then a movement.
Uppercase "HellO" to "HELLO" with gU then a movement.
Lowercase "HellO" to "hello" with gu then a movement.
Alternatively, you can visually select text then press ~
to toggle case, or U
to convert to uppercase, or u
to convert to lowercase.
~
3~
g~3w
g~iw
g~$
g~~
V~
).
The above uses ~ to toggle case. In each example, you can replace ~ with u to convert to lowercase, or with U to convert to uppercase. For example:
U
v
or V
then move to select text.
U
will undo all changes to the current line.
gUU
VU
).
gUiw
u
u
will undo the last change.
guu
Vu
).
If you like dEexams.com and would like to contribute, you can write your article here or mail your article to admin@deexams.com . See your article appearing on the dEexams.com main page and help others to learn.