aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundle/todo/autoload/todo.vim9
-rw-r--r--bundle/todo/plugin/todo.vim14
2 files changed, 11 insertions, 12 deletions
diff --git a/bundle/todo/autoload/todo.vim b/bundle/todo/autoload/todo.vim
new file mode 100644
index 0000000..d5579c1
--- /dev/null
+++ b/bundle/todo/autoload/todo.vim
@@ -0,0 +1,9 @@
+function! todo#NextTODO()
+ normal! m'
+ call search('TODO')
+endfunction
+
+function! todo#PreviousTODO()
+ normal! m'
+ call search('TODO', 'b')
+endfunction
diff --git a/bundle/todo/plugin/todo.vim b/bundle/todo/plugin/todo.vim
index e6792e4..47e1732 100644
--- a/bundle/todo/plugin/todo.vim
+++ b/bundle/todo/plugin/todo.vim
@@ -1,12 +1,2 @@
-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>
+nnoremap [t :call todo#PreviousTODO()<CR>
+nnoremap ]t :call todo#NextTODO()<CR>