From 68a2dea0305109accbf628294eadbe284c36bfa5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 10 Mar 2020 00:49:25 +0100 Subject: todo: Add `` mappings --- bundle/todo/plugin/todo.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bundle') diff --git a/bundle/todo/plugin/todo.vim b/bundle/todo/plugin/todo.vim index e8f0229..1c7ccfd 100644 --- a/bundle/todo/plugin/todo.vim +++ b/bundle/todo/plugin/todo.vim @@ -4,5 +4,14 @@ endif let g:loaded_todo = 1 -nnoremap [t :call todo#PreviousTODO() -nnoremap ]t :call todo#NextTODO() +nnoremap (todo-previous) :call todo#PreviousTODO() +nnoremap (todo-next) :call todo#NextTODO() + + +if !hasmapto('(todo-previous)', 'n') && !maparg('[t', 'n') + nmap [t (todo-previous) +endif + +if !hasmapto('(todo-next)', 'n') && !maparg(']t', 'n') + nmap ]t (todo-next) +endif -- cgit v1.2.3