From 5974ea07acf1ebcc6bae429444d35d9db4e08103 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Thu, 29 Nov 2012 10:19:30 +0100 Subject: [PATCH] Documentation fix for repeat#setreg() Need to :execute the :silent! call to avoid that the remainder of the command line is aborted together with the call when repeat.vim is not installed. Otherwise, MyFunction() won't be invoked, and the mapping does nothing. --- autoload/repeat.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index df75fb5..d20e685 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -40,7 +40,7 @@ " in your mapping will look like this: " " nnoremap MyMap -" \ :silent! call repeat#setreg("\Plug>MyMap", v:register) +" \ :execute 'silent! call repeat#setreg("\Plug>MyMap", v:register)' " \ call MyFunction(v:register, ...) " \ silent! call repeat#set("\Plug>MyMap")