From 953c0b15706cb7f8cded7d6792e5031e2a78228f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 21 Mar 2020 19:20:39 +0100 Subject: todo#motion#NextIncomplete(): Add count support --- autoload/todo/motion.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoload/todo/motion.vim b/autoload/todo/motion.vim index 3ebab2d..96877a9 100644 --- a/autoload/todo/motion.vim +++ b/autoload/todo/motion.vim @@ -2,8 +2,15 @@ let s:INCOMPLETE_MATCHER = '^\s*[\-_!] ' function! todo#motion#NextIncomplete() + let cnt = v:count1 + normal! m' - call search(s:INCOMPLETE_MATCHER) + + let i = 0 + while i < cnt + call search(s:INCOMPLETE_MATCHER) + let i += 1 + endwhile endfunction -- cgit v1.2.3