2018-07-02 15:03:25 -04:00
|
|
|
# repeat.vim
|
2011-08-29 02:14:52 -04:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
* [surround.vim](https://github.com/tpope/vim-surround)
|
|
|
|
* [speeddating.vim](https://github.com/tpope/vim-speeddating)
|
|
|
|
* [unimpaired.vim](https://github.com/tpope/vim-unimpaired)
|
2015-03-07 22:17:05 -05:00
|
|
|
* [vim-easyclip](https://github.com/svermeulen/vim-easyclip)
|
2011-08-29 02:14:52 -04:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2018-07-02 15:03:25 -04:00
|
|
|
## Installation
|
2011-08-29 02:14:52 -04:00
|
|
|
|
2018-07-02 15:03:36 -04:00
|
|
|
Install using your favorite package manager, or use Vim's built-in package
|
|
|
|
support:
|
2011-08-29 02:14:52 -04:00
|
|
|
|
2018-07-02 15:03:36 -04:00
|
|
|
mkdir -p ~/.vim/pack/tpope/start
|
|
|
|
cd ~/.vim/pack/tpope/start
|
|
|
|
git clone https://tpope.io/vim/repeat.git
|
2011-08-29 02:14:52 -04:00
|
|
|
|
2018-07-02 15:03:25 -04:00
|
|
|
## Contributing
|
2011-08-29 02:14:52 -04:00
|
|
|
|
|
|
|
See the contribution guidelines for
|
|
|
|
[pathogen.vim](https://github.com/tpope/vim-pathogen#readme).
|
|
|
|
|
2018-07-02 15:03:25 -04:00
|
|
|
## Self-Promotion
|
2011-08-29 02:14:52 -04:00
|
|
|
|
|
|
|
Like repeat.vim? Follow the repository on
|
|
|
|
[GitHub](https://github.com/tpope/vim-repeat) and vote for it on
|
|
|
|
[vim.org](http://www.vim.org/scripts/script.php?script_id=2136). And if
|
|
|
|
you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
|
|
|
|
[Twitter](http://twitter.com/tpope) and
|
|
|
|
[GitHub](https://github.com/tpope).
|
|
|
|
|
2018-07-02 15:03:25 -04:00
|
|
|
## License
|
2011-08-29 02:14:52 -04:00
|
|
|
|
2011-08-29 16:11:07 -04:00
|
|
|
Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
|
|
|
|
See `:help license`.
|