Vim: Switching All Text to UPPER case

Here is Vim key combination to switch all text to UPPER case:

Disclaimer:
The information below is the result of my researches in the Internet and of my experiences. It is solely used for my purpose and may not be suitable for others.

ggVGU

gg - Move to the beginning of the file.
V - Visual mode.
G - Select all text.
U - Switch to lower case.

Here is with search and replace function for the entire file: :%s/[A-Z]/\U&/g

Lastly, doing so for single letter: ~

That's a tilde or squiggly.

That's all!
-gibb

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>