Shortcut

Vim Replace One Character Shortcut

The Vim shortcut to replace one character is r{char} on Windows. It's the same on Mac.

Quick Answer

Windows
r{char}
Mac
r{char}
Web
Not confirmed yet
VimShortcut

Replace One Character

Windows
r{char}

Swaps the character under the cursor for one you type.

Learn More

How to replace one character in Vim

  1. Open Vim and go to where you want to replace one character.
  2. Press r{char} on Windows or r{char} on Mac.

Vim Replace One Character Shortcut for Windows

Press r{char}.

Vim Replace One Character Shortcut for Mac

Press r{char}.

Vim Replace One 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 replace one character shortcut?

On Windows, press r{char}. On a Mac, press r{char}.

Is there a Mac shortcut to replace one character in Vim?

Yes: r{char}.

Does it work in Vim for the web?

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

Official source · How we verify