Allow repeating operators with custom motions

Closes #8.
This commit is contained in:
Tim Pope 2013-12-24 10:43:24 -05:00
parent a81bef7603
commit 2a3c5f8e3c

View File

@ -62,6 +62,10 @@ function! repeat#set(sequence,...)
let g:repeat_sequence = a:sequence let g:repeat_sequence = a:sequence
let g:repeat_count = a:0 ? a:1 : v:count let g:repeat_count = a:0 ? a:1 : v:count
let g:repeat_tick = b:changedtick let g:repeat_tick = b:changedtick
augroup repeat_custom_motion
autocmd!
autocmd CursorMoved <buffer> let g:repeat_tick = b:changedtick | autocmd! repeat_custom_motion
augroup END
endfunction endfunction
function! repeat#setreg(sequence,register) function! repeat#setreg(sequence,register)