blob: 26d243b7bb64acdcbc9701718d74173131e6b760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if exists('g:loaded_todo_comments')
finish
endif
let g:loaded_todo = 1
nnoremap <silent> <Plug>(todo-comments-previous) :<C-u>call todo_comments#PreviousTODO()<CR>
nnoremap <silent> <Plug>(todo-comments-next) :<C-u>call todo_comments#NextTODO()<CR>
if !hasmapto('<Plug>(todo-comments-previous)', 'n') && !maparg('[t', 'n')
nmap [t <Plug>(todo-comments-previous)
endif
if !hasmapto('<Plug>(todo-comments-next)', 'n') && !maparg(']t', 'n')
nmap ]t <Plug>(todo-comments-next)
endif
|