aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/todo/plugin/todo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/todo/plugin/todo.vim')
-rw-r--r--bundle/todo/plugin/todo.vim12
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>