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

Commit

Permalink
Allow repeating operators with custom motions
Browse files Browse the repository at this point in the history
Closes tpope#8.
  • Loading branch information
tpope committed Dec 24, 2013
1 parent a81bef7 commit 2a3c5f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/repeat.vim
Expand Up @@ -62,6 +62,10 @@ function! repeat#set(sequence,...)
let g:repeat_sequence = a:sequence
let g:repeat_count = a:0 ? a:1 : v:count
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

function! repeat#setreg(sequence,register)
Expand Down

0 comments on commit 2a3c5f8

Please sign in to comment.