Home Interests Vim

How to Change or Switch the Case of Characters in Vim

howchoo   (467)
September 18, 2023
2 minutes


You'll Need 1

What you'll need
vim x 1
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
Posted in these interests:


vim • 5 guides

Need to change the case of characters to all caps or all lowercase? This is easily done using Vim. This guide will show you how to change the case of characters in Vim.


Toggle “Hello” to “hELLO” with g~. Uppercase “Hello” to “HELLO” with gU. Lowercase “Hello” to “hello” with gu.

1 – Select the text you’re interested in

Before changing case, you’ll need to select the text you’re interest in.

To do this, start on the first character you want to toggle, then enter visual mode by typing v. Use the directional keys (h, j, k, l) to select the rest of the text you want to change.

2 – Toggle case

To toggle the case type g~.

3 – All uppercase

If you want to make the text all uppercase use gU.

4 – All lowercase

If you want to make the text all lowercase use gu.


How to install Vim plugins without a plugin manager

howchoo   (467)
September 8, 2023

Vundle, Pathogen, Vim-plug, VAM, and the others can be great time savers but sometimes you just have to do something yourself so you can understand what exactly the time saving software is doing for you in the background. For myself, I got sick of not understanding what these were doing to my system. I realized

Continue Reading


 467 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.