diff --git a/autoload/repeat.vim b/autoload/repeat.vim index fde6a38..fdad58c 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -111,7 +111,8 @@ endfunction function! repeat#wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) - exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo\|all' ? 'zv' : '') + call feedkeys((a:count ? a:count : '').a:command, 'n') + exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '') if preserve let g:repeat_tick = b:changedtick endif