From 953c04042291ef614cc5ac8d8f84e0b0617972db Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Fri, 28 Dec 2018 16:11:14 +0800 Subject: [PATCH] Fix for issue #63 where repeat does not work if executed immediately after an undo --- autoload/repeat.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index ce2141b..1a4ab92 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -111,7 +111,7 @@ endfunction function! repeat#wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) - call feedkeys((a:count ? a:count : '').a:command, 'n') + exe 'norm!' (a:count ? a:count : '').a:command exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '') if preserve let g:repeat_tick = b:changedtick