diff options
author | Teddy Wing | 2020-03-10 00:36:27 +0100 |
---|---|---|
committer | Teddy Wing | 2020-03-12 23:21:55 +0100 |
commit | 5664f60792d9574b8f4e07ee178c6af75b57cf06 (patch) | |
tree | 626c5f22301eb554c9012f31d51cfa60b166a341 /bundle | |
parent | a6d256cab3d24f091cb672580b6ef0fedf76c0cb (diff) | |
download | dotvim-5664f60792d9574b8f4e07ee178c6af75b57cf06.tar.bz2 |
Add 'todo' plugin
Add a plugin with mappings to move to the next and previous TODO.
Needs some cleanup and count support.
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/todo/plugin/todo.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bundle/todo/plugin/todo.vim b/bundle/todo/plugin/todo.vim new file mode 100644 index 0000000..e6792e4 --- /dev/null +++ b/bundle/todo/plugin/todo.vim @@ -0,0 +1,12 @@ +function! s:NextTODO() + normal! m' + call search('TODO') +endfunction + +function! s:PreviousTODO() + normal! m' + call search('TODO', 'b') +endfunction + +nnoremap [t :call <SID>PreviousTODO()<CR> +nnoremap ]t :call <SID>NextTODO()<CR> |