From aeb3d6cd895cd64dc780c86056525f67d2169c0f 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 ce1816c..71cee99 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")