From 2a3c5f8e3c26a57b8eb4cfc4be79615a1c508ef6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 24 Dec 2013 10:43:24 -0500 Subject: [PATCH] Allow repeating operators with custom motions Closes #8. --- autoload/repeat.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index e8fe723..18b1280 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -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 let g:repeat_tick = b:changedtick | autocmd! repeat_custom_motion + augroup END endfunction function! repeat#setreg(sequence,register)