From 502132da7d6131e3ace63f43e50c0e4e5004da91 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 10 Mar 2020 00:43:15 +0100 Subject: todo: Move functions to autoload --- bundle/todo/plugin/todo.vim | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'bundle/todo/plugin') 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 PreviousTODO() -nnoremap ]t :call NextTODO() +nnoremap [t :call todo#PreviousTODO() +nnoremap ]t :call todo#NextTODO() -- cgit v1.2.3