repeat.vim: enable repeating supported plugin maps with "."
Vim script
Latest commit 7a6675f May 9, 2015 @tpope Merge pull request #47 from orlp/master
Prevent stack trace of search errors.
Failed to load latest commit information.
autoload Merge pull request #47 from orlp/master May 9, 2015
README.markdown Update README.markdown Mar 8, 2015



If you've ever tried using the . command after a plugin map, you were likely disappointed to discover it only repeated the last native command inside that map, rather than the map as a whole. That disappointment ends today. Repeat.vim remaps . in a way that plugins can tap into it.

The following plugins support repeat.vim:

Adding support to a plugin is generally as simple as the following command at the end of your map functions.

silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)


If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://


See the contribution guidelines for pathogen.vim.


Like repeat.vim? Follow the repository on GitHub and vote for it on And if you're feeling especially charitable, follow tpope on Twitter and GitHub.


Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. See :help license.