From d8f7fe7598b27a3e980ead243205f7e3bff1efdc Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Wed, 7 Nov 2012 09:31:54 +0100 Subject: [PATCH] Go back to using feedkeys() Since there seems to be a bug with "norm" in Vim prior to 7.3.100, better go back to using feedkeys. The repeat call can still be remapped by using something like: nnoremap . :call repeat#run(v:count)call feedkeys('`.', 'n') --- autoload/repeat.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index 4cc5667..ce1816c 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -84,9 +84,10 @@ function! repeat#run(count) let c = g:repeat_count let s = g:repeat_sequence let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : '')) - exe 'norm ' . r . cnt . s + call feedkeys(r . cnt, 'n') + call feedkeys(s) else - exe 'norm! '.(a:count ? a:count : '') . '.' + call feedkeys((a:count ? a:count : '') . '.', 'n') endif endfunction