parent
5eba0f19c8
commit
193f4866df
@ -88,11 +88,19 @@ function! repeat#run(count)
|
||||
let c = g:repeat_count
|
||||
let s = g:repeat_sequence
|
||||
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
|
||||
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
||||
exe 'norm ' . r . cnt . s
|
||||
elseif
|
||||
call feedkeys(r . cnt, 'n')
|
||||
call feedkeys(s)
|
||||
endif
|
||||
else
|
||||
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
||||
exe 'norm! '.(a:count ? a:count : '') . '.'
|
||||
elseif
|
||||
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! repeat#wrap(command,count)
|
||||
|
Loading…
Reference in New Issue
Block a user