aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/todo-comments/autoload/todo_comments.vim
blob: 8f0d19ad2408ae359352c0472d747a066f1eca10 (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_comments#NextTODO()
	call s:MoveToTODO('')
endfunction

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