Hi,
How do you convert all text in vim to lowercase? Is it even possible?
Thanks, Kenneth
Hi,
How do you convert all text in vim to lowercase? Is it even possible?
Thanks, Kenneth
If you really mean small caps, then no, that is not possible – just as it is’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). Tidle (~
) in command mode reverses case.
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.
I assume you want lowercase the text. Solution is pretty simple:
ggVGu
Explanation: