Shortcut

Vim Delete the Character Under the Cursor Shortcut

The Vim shortcut to delete the character under the cursor is x on Windows. It's the same on Mac.

Quick Answer

Windows
x
Mac
x
Web
Not confirmed yet
VimShortcut

Delete the Character Under the Cursor

Windows
x

Removes the character the cursor sits on.

Learn More

How to delete the character under the cursor in Vim

  1. Open Vim and go to where you want to delete the character under the cursor.
  2. Press x on Windows or x on Mac.

Vim Delete the Character Under the Cursor Shortcut for Windows

Press x.

Vim Delete the Character Under the Cursor Shortcut for Mac

Press x.

Vim Delete the Character Under the Cursor 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 delete the character under the cursor shortcut?

On Windows, press x. On a Mac, press x.

Is there a Mac shortcut to delete the character under the cursor in Vim?

Yes: x.

Does it work in Vim for the web?

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

Official source · How we verify