diff options
author | Teddy Wing | 2020-03-10 00:43:15 +0100 |
---|---|---|
committer | Teddy Wing | 2020-03-12 23:21:55 +0100 |
commit | 502132da7d6131e3ace63f43e50c0e4e5004da91 (patch) | |
tree | 9b92a8538b02ae5bb314277aa11c68a44a9bf34c /bundle | |
parent | 5664f60792d9574b8f4e07ee178c6af75b57cf06 (diff) | |
download | dotvim-502132da7d6131e3ace63f43e50c0e4e5004da91.tar.bz2 |
todo: Move functions to autoload
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/todo/autoload/todo.vim | 9 | ||||
-rw-r--r-- | bundle/todo/plugin/todo.vim | 14 |
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> |