How to convert all text to lowercase in Vim

text-processing, vim

Solution

If you really mean small caps, then no, that is not possible – just as it isn’t possible to convert text to bold or italic in any text editor (as opposed to word processor). If you want to convert text to lowercase, create a visual block and press `u` (or `U` to convert to uppercase). Tilde (`~`) in command mode reverses case of the character under the cursor.

If you want to see all text in Vim in small caps, you might want to look at the `guifont` option, or type `:set guifont=*` if your Vim flavour supports GUI font chooser.

Problem

How do you convert all text in Vim to lowercase? Is it even possible?

Original source