From ceb984dc3b760200ead113be4945a71fa3d675df Mon Sep 17 00:00:00 2001 From: Konfekt Date: Thu, 9 Apr 2020 15:31:14 +0200 Subject: [PATCH] hint at plug-in Repeatable.vim to simplify definition of repeatable map --- README.markdown | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 448d2d6..be7ce46 100644 --- a/README.markdown +++ b/README.markdown @@ -14,10 +14,20 @@ The following plugins support repeat.vim: * [vim-easyclip](https://github.com/svermeulen/vim-easyclip) * [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. silent! call repeat#set("\MyWonderfulMap", v:count) + +For example + + nnoremap PasteBelowCursorEnd p`] + \:call repeat#set("\PasteBelowCursorEnd") + nmap gp PasteBelowCursorEnd + +Or use [Repeatable.vim](https://github.com/kreskij/Repeatable.vim) + + Repeatable nnoremap gp p`] ## Installation