:normal

You can run normal commands from the command line with :normal or :norm. For undo, all commands are undone together. Execution stops when an error is encountered.

Further Reading

:h :normal

More Gifs