Vim: Undo, Redo and Repeat Cheat Sheet

uUndo [count] changes
:u[ndo]Undo one change
CTRL-RRedo [count] changes which were undone
:red[o]Redo one change which was undone
UUndo all latest changes on one line.
.Repeat last change, with count replaced with [count]

Leave a Reply

Your email address will not be published. Required fields are marked *