aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/todo/motion.vim
blob: 96877a91a46ec30ecc1a746a9ffba972f053982d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
let s:INCOMPLETE_MATCHER = '^\s*[\-_!] '


function! todo#motion#NextIncomplete()
	let cnt = v:count1

	normal! m'

	let i = 0
	while i < cnt
		call search(s:INCOMPLETE_MATCHER)
		let i += 1
	endwhile
endfunction


function! todo#motion#PreviousIncomplete()
	normal! m'
	call search(s:INCOMPLETE_MATCHER, 'b')
endfunction