repeat.vim : Use the repeat command (.) with supported plugins
| script karma |
Rating 57/21,
Downloaded by 2323 |
| created by |
| Tim Pope |
| |
| script type |
| utility |
| |
| description |
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 app, rather than the map as a whole. That disappointment ends today. Repeat.vim remaps "." in a way that plugins can tap into it.
Support is already present in the following plugins:
surround.vim (vimscript #1697)
speeddating.vim (vimscript #2120)
abolish.vim (vimscript #1545)
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)
Details are at the top of the file. Let me know if you add support to a script on vim.org and I will link it here. |
| |
| install details |
| Install in ~/.vim/autoload/repeat.vim (~\vim\autoload\repeat.vim on Windows). |
| |
script versions (upload new version)
Click on the package to download.
|