Merge pull request #36 from justinmk/norm
Use :norm for Vim 7.3.100 or later
This commit is contained in:
commit
7f09c18d2e
@ -89,11 +89,19 @@ function! repeat#run(count)
|
|||||||
let c = g:repeat_count
|
let c = g:repeat_count
|
||||||
let s = g:repeat_sequence
|
let s = g:repeat_sequence
|
||||||
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
|
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(r . cnt, 'n')
|
||||||
call feedkeys(s)
|
call feedkeys(s)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
|
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
||||||
|
exe 'norm! '.(a:count ? a:count : '') . '.'
|
||||||
|
elseif
|
||||||
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! repeat#wrap(command,count)
|
function! repeat#wrap(command,count)
|
||||||
|
Loading…
Reference in New Issue
Block a user