blob: 27d6264a625c80e23fc56e12b1043c2e4043cbbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
let s:INCOMPLETE_MATCHER = '^\s*[\-_!] '
function! s:Incomplete(search_flags)
let cnt = v:count1
normal! m'
let i = 0
while i < cnt
call search(s:INCOMPLETE_MATCHER, a:search_flags)
let i += 1
endwhile
endfunction
function! todo#motion#NextIncomplete()
call s:Incomplete('')
endfunction
function! todo#motion#PreviousIncomplete()
call s:Incomplete('b')
endfunction
|