diff --git a/autoload/repeat.vim b/autoload/repeat.vim index 71cee99..dbbae7d 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -91,7 +91,7 @@ function! repeat#run(count) endif endfunction -function! s:wrap(command,count) +function! repeat#wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '') if preserve @@ -100,11 +100,11 @@ function! s:wrap(command,count) endfunction nnoremap . :call repeat#run(v:count) -nnoremap u :call wrap('u',v:count) +nnoremap u :call repeat#wrap('u',v:count) if maparg('U','n') ==# '' - nnoremap U :call wrap('U',v:count) + nnoremap U :call repeat#wrap('U',v:count) endif -nnoremap :call wrap("\C-R>",v:count) +nnoremap :call repeat#wrap("\C-R>",v:count) augroup repeatPlugin autocmd!