Vim redo and undo
Learn how to undo and redo changes using vim. If you are brand new to vim, learn more about the basics in this intro to vim guide. You may also want to check out our guide on how to get started with Vim.
TL;DR
Command | Description |
---|---|
u | undo |
ctrl-r | redo |
And for undo branches
Command | Description |
---|---|
g- | move back 1 chronological changes |
g+ | move forward 1 chronological changes |
:earlier <num> | move back <num> chronological changes |
:later <num> | move forward <num> chronological changes |