DISCLAIMER: this was flagrantly stolen from this stackexchange answer. If you use this snippet please give Antony some kind of upvote somewhere.
A basic wrapper around vim's builtin @
to allow you to repeat macros with the .
operator. You can repeat macros right after recording them, or right after using them as a replacement for @@
.
This can be downloaded as a plugin with your favorite package manager (I use vundle). You can also simply copy the contents of Antonys-macro-repeater.vim
into your vimrc or wherever you keep random functions. Please send me issues if you happen to use this and uncover any bugs (or pull requests if you decide to fix them).