blob: 32a7c887522a64cdb7a2a8c6e35e3dad9e3e8198 (
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(extra_search_flags)
let cnt = v:count1
let search_flags = 's' . a:extra_search_flags
let i = 0
while i < cnt
call search(s:INCOMPLETE_MATCHER, search_flags)
let i += 1
endwhile
endfunction
function! todo#motion#NextIncomplete()
call s:Incomplete('')
endfunction
function! todo#motion#PreviousIncomplete()
call s:Incomplete('b')
endfunction
|