Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Commit

Permalink
Use :norm for Vim 7.3.100 or later
Browse files Browse the repository at this point in the history
Fixes tpope#23
  • Loading branch information
justinmk committed Jan 17, 2015
1 parent 5eba0f1 commit 193f486
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions autoload/repeat.vim
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,18 @@ function! repeat#run(count)
let c = g:repeat_count
let s = g:repeat_sequence
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
call feedkeys(r . cnt, 'n')
call feedkeys(s)
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
call feedkeys((a:count ? a:count : '') . '.', 'n')
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

Expand Down

0 comments on commit 193f486

Please sign in to comment.