How to revert (undo) a change and how to revert the revert (redo) in Vim?
It's very simple.
Escjust in case.
uto undo the last change. You can prepend it with a number, like
5u, to undo the five recent changes.
CTRL-Rto redo the change that was just reverted. Again, prepend it with a number to repeat the operation multiple times.
That's what you need to know to get going.
I hope that was helpful.
Have a productive day!