aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-06-03 09:36:31 -0400
committerTeddy Wing2016-06-03 09:36:31 -0400
commit17684a8b4898e5aecd33b86689c386e483ab698f (patch)
tree7e4b24efd77648bc3faf227dcb22decccf004964
parent506887f46f0af36c3cc9b7450faa884f6aea125d (diff)
downloadvim-twodo-17684a8b4898e5aecd33b86689c386e483ab698f.tar.bz2
ftplugin/todo.vim: Add Descalate mappings
-rw-r--r--ftplugin/todo.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim
index 83d6c00..85b2b66 100644
--- a/ftplugin/todo.vim
+++ b/ftplugin/todo.vim
@@ -10,6 +10,7 @@ nnoremap <silent> <buffer> <Plug>TwodoMarkComplete m`:<c-u>s/\v^(\s*)[-_!xS] /\1
nnoremap <silent> <buffer> <Plug>TwodoMarkDeleted m`:<c-u>s/\v^(\s*)[-_!vS] /\1x / \| nohlsearch<cr>``
nnoremap <silent> <buffer> <Plug>TwodoMarkPartiallyCompleted m`:<c-u>s/\v^(\s*)[-_!xv] /\1S / \| nohlsearch<cr>``
nnoremap <silent> <buffer> <Plug>TwodoRemoveOldTodos :<c-u>g/^\s*[vx] /d \| nohlsearch<cr>
+nnoremap <silent> <buffer> <Plug>TwodoDescalate :<c-u>call todo#Descalate()<cr>
if !hasmapto('<Plug>TwodoNewTodoBelow') || !maparg('<leader>n', 'n')
nmap <silent> <buffer> <leader>n <Plug>TwodoNewTodoBelow
@@ -34,3 +35,7 @@ endif
if !hasmapto('<Plug>TwodoRemoveOldTodos') || !maparg('<leader>R', 'n')
nmap <silent> <buffer> <leader>R <Plug>TwodoRemoveOldTodos
endif
+
+if !hasmapto('<Plug>TwodoDescalate') || !maparg('<leader>-', 'n')
+ nmap <silent> <buffer> <leader>- <Plug>TwodoDescalate
+endif