Shortcut

Vim Switch the Case of a Character Shortcut

The Vim shortcut to switch the case of a character is ~ on Windows. It's the same on Mac.

Quick Answer

Windows
~
Mac
~
Web
Not confirmed yet
VimShortcut

Switch the Case of a Character

Windows
~

Toggles upper and lower case and moves on.

Learn More

How to switch the case of a character in Vim

  1. Open Vim and go to where you want to switch the case of a character.
  2. Press ~ on Windows or ~ on Mac.

Vim Switch the Case of a Character Shortcut for Windows

Press ~.

Vim Switch the Case of a Character Shortcut for Mac

Press ~.

Vim Switch the Case of a Character Shortcut for Vim Web

We haven't confirmed a Vim Web shortcut for this yet.

Related Keyboard Shortcuts

Frequently asked questions

What is the Vim switch the case of a character shortcut?

On Windows, press ~. On a Mac, press ~.

Is there a Mac shortcut to switch the case of a character in Vim?

Yes: ~.

Does it work in Vim for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify