first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

gvim/vim: selected tips from the vim tip database; toggling case; VimTip 49

To switch the case of one or more characters use these commands: ~

,

gU

or

gu

Examples:

Switch case of character under cursor (in visual-mode: switch case of highlighted text):

~

Switch case of next three characters:

3~

Switch case of current line:

g~~

In visual-mode: make highlighted text uppercase:

U

Make current line uppercase:

gUU

In visual-mode: make highlighted text lowercase:

u

Make current line lowercase:

guu

Make current word uppercase:

gUaw

Make current word lowercase:

guaw
mod date: 2007-09-08T02:57:02.000Z