Shortcut
Vim Undo Shortcut
The Vim shortcut to undo is u on Windows. It's the same on Mac.
Quick Answer
- Windows
- u
- Mac
- u
- Web
- Not confirmed yet
VimShortcut
Undo
Reverses the last change.
How to undo in Vim
- Open Vim and go to where you want to undo.
- Press u on Windows or u on Mac.
Vim Undo Shortcut for Windows
Press u.
Vim Undo Shortcut for Mac
Press u.
Vim Undo 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 undo shortcut?
On Windows, press u. On a Mac, press u.
Is there a Mac shortcut to undo in Vim?
Yes: u.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify