u
The
Command
The u command in Vim
Command
undo
Undo the last change. Repeat to undo further. Use
Ctrl-r to redo.Examples
u(undo)3u(undo 3 changes)Ctrl-r(redo)U(undo all changes on line)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands