After making a lot of speculative changes in a file which didn’t work out, I find myself undoing and redoing changes in quick succession. It’s easy to get lost in the undo tree, and Vim doesn’t have any built-in features for easily seeing what each change in
:undolist looks like.
You’ll notice experienced Vim users switch back into Normal mode as often as is practical. One reason for this is due to the way Vim tracks changes in a buffer. A change is a command entered in the Normal or Command-line modes, or edits made while Insert mode is active. Pressing
u or typing