aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-04-28 18:37:57 -0400
committerTeddy Wing2016-04-28 18:37:57 -0400
commit429a26e68f863afb306d6b7ea24892b6f580b384 (patch)
treec0a39639609e86d7f27acdb77ff60be24270209c
parent79c2c49099a73b616483a74b1fcafa6ff8ff104f (diff)
downloadvim-twodo-429a26e68f863afb306d6b7ea24892b6f580b384.tar.bz2
Allow any action on any TODO type
Previously you could only mark `-`-type TODOs as [Complete, Partially Complete, Deleted]. Now you can mark any type of TODO (`-`, `_`, `!`, `x`, `S`, `v`) as any of the above three states.
-rw-r--r--ftplugin/todo.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim
index 323e5ec..83d6c00 100644
--- a/ftplugin/todo.vim
+++ b/ftplugin/todo.vim
@@ -6,9 +6,9 @@ let b:did_ftplugin = 1
nnoremap <silent> <buffer> <Plug>TwodoNewTodoBelow o-
nnoremap <silent> <buffer> <Plug>TwodoNewTodoAbove O-
-nnoremap <silent> <buffer> <Plug>TwodoMarkComplete m`:<c-u>s/\v^(\s*)- /\1v / \| nohlsearch<cr>``
-nnoremap <silent> <buffer> <Plug>TwodoMarkDeleted m`:<c-u>s/\v^(\s*)- /\1x / \| nohlsearch<cr>``
-nnoremap <silent> <buffer> <Plug>TwodoMarkPartiallyCompleted m`:<c-u>s/\v^(\s*)- /\1S / \| nohlsearch<cr>``
+nnoremap <silent> <buffer> <Plug>TwodoMarkComplete m`:<c-u>s/\v^(\s*)[-_!xS] /\1v / \| nohlsearch<cr>``
+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>
if !hasmapto('<Plug>TwodoNewTodoBelow') || !maparg('<leader>n', 'n')