u

u will undo a sequence of commands.
ctrl-r will redo a sequence of commands.
U will undo the last command

Further Reading

:h u :h U

More Gifs