tpope/vim-repeat — pull request #3 by inkarkat (2011-12-02 22:06:06+00:00)
Title: Support repetition with original register.

For commands that take an optional register (like p/P), Vim uses the
same register on repetition. This enhancement allows the same for custom
mappings, which need to call repeat#setreg() before repeat#set(). (No
changes for the vast majority of mappings that don't use registers.) It
even supports repeat of the expression register, with the expression
being re-evaluated on repeat.