From 5664f60792d9574b8f4e07ee178c6af75b57cf06 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 10 Mar 2020 00:36:27 +0100 Subject: Add 'todo' plugin Add a plugin with mappings to move to the next and previous TODO. Needs some cleanup and count support. --- bundle/todo/plugin/todo.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bundle/todo/plugin/todo.vim (limited to 'bundle') 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 PreviousTODO() +nnoremap ]t :call NextTODO() -- cgit v1.2.3