4 ms·
Vim provides operators for changing case: gu for lower case, gU for upper case and g~ for swapping case. For example, gUaw changes the current word to upper ca
by rbonvall 13y ago
Vim provides operators for changing case: gu for lower case, gU for upper case and g~ for swapping case.
For example, gUaw changes the current word to upper case. guu changes the whole current line to lower case.
In visual mode, you can use just u and U.
Bonus useless tip: g? encodes and decodes rot13.
- clarry 13y agoThanks, I guess that explains why gg is needed to go to top. In my editor it's just g. Maybe I'll come up with something clever.