aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/todo/autoload/todo.vim
blob: 6885b2b553adad227555bbdbe82613441849f6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function! s:MoveToTODO(search_flags)
	let cnt = v:count1
	normal! m'

	let i = 0
	while i < cnt
		call search('TODO', a:search_flags)

		let i += 1
	endwhile
endfunction

function! todo#NextTODO()
	call s:MoveToTODO('')
endfunction

function! todo#PreviousTODO()
	call s:MoveToTODO('b')
endfunction