mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Merge ceb984dc3b into 65846025c1
This commit is contained in:
commit
7e2f01b4f9
|
|
@ -14,10 +14,20 @@ The following plugins support repeat.vim:
|
||||||
* [vim-easyclip](https://github.com/svermeulen/vim-easyclip)
|
* [vim-easyclip](https://github.com/svermeulen/vim-easyclip)
|
||||||
* [vim-radical](https://github.com/glts/vim-radical)
|
* [vim-radical](https://github.com/glts/vim-radical)
|
||||||
|
|
||||||
Adding support to a plugin is generally as simple as the following
|
Adding support to a plugin is generally as simple as appending the following
|
||||||
command at the end of your map functions.
|
command at the end of your map functions.
|
||||||
|
|
||||||
silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
|
silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
|
||||||
|
|
||||||
|
For example
|
||||||
|
|
||||||
|
nnoremap <silent> <Plug>PasteBelowCursorEnd p`]
|
||||||
|
\:call repeat#set("\<Plug>PasteBelowCursorEnd")<CR>
|
||||||
|
nmap gp <Plug>PasteBelowCursorEnd
|
||||||
|
|
||||||
|
Or use [Repeatable.vim](https://github.com/kreskij/Repeatable.vim)
|
||||||
|
|
||||||
|
Repeatable nnoremap gp p`]
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue