aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/todo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/todo.vim')
-rw-r--r--ftplugin/todo.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim
index 22880ac..e7664d8 100644
--- a/ftplugin/todo.vim
+++ b/ftplugin/todo.vim
@@ -52,12 +52,18 @@ if !hasmapto('<Plug>TwodoDescalate') || !maparg('<leader>-', 'n')
nmap <silent> <buffer> <leader>- <Plug>TwodoDescalate
endif
-if !hasmapto('<Plug>TwodoNextIncomplete') && !maparg(']u', 'n')
+if !hasmapto('<Plug>TwodoNextIncomplete', 'n') && !maparg(']u', 'n')
nmap <buffer> ]u <Plug>TwodoNextIncomplete
+endif
+
+if !hasmapto('<Plug>TwodoNextIncomplete', 'o') && !maparg(']u', 'o')
omap <buffer> ]u <Plug>TwodoNextIncomplete
endif
-if !hasmapto('<Plug>TwodoPreviousIncomplete') && !maparg('[u', 'n')
+if !hasmapto('<Plug>TwodoPreviousIncomplete', 'n') && !maparg('[u', 'n')
nmap <buffer> [u <Plug>TwodoPreviousIncomplete
+endif
+
+if !hasmapto('<Plug>TwodoPreviousIncomplete', 'o') && !maparg('[u', 'o')
omap <buffer> [u <Plug>TwodoPreviousIncomplete
endif