Skip to the main content

Vim

Undo the last change

U

Linux Desktop app Vim default commands

Practice this

To undo the last change in Vim, press U.

Where it works: Normal mode

Press the small letter, without Shift. Vim is case sensitive, and the capital letter is a different command.

Every documented variant

Variants of this shortcut
System Environment Keys
Linux Desktop app U
Mac Desktop app U

Where this comes from

Vim help: index.txt - vim/vim

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction