How to Change or Switch the Case of Characters in Vim
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.
tl;dr
Toggle "Hello" to "hELLO" with g~. Uppercase "Hello" to "HELLO" with gU. Lowercase "Hello" to "hello" with gu.
vim | × | 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.