diff options
author | Teddy Wing | 2016-04-19 05:13:43 -0400 |
---|---|---|
committer | Teddy Wing | 2016-04-19 05:13:43 -0400 |
commit | 2a36ec5dc5f039af1c79c62969a8573d16f3b8fa (patch) | |
tree | d0f4cf10a61a49146c1eea1cb6d9ac905d89c931 | |
parent | 7d653fe8ab84a1cda45e0cea625d7a1c07cc784d (diff) | |
download | vim-twodo-2a36ec5dc5f039af1c79c62969a8573d16f3b8fa.tar.bz2 |
ftdetect/todo.vim: Don't remove partially completed todos with <leader>R
When invoking the <leader>R command to remove old todos, only remove
completed and deleted ones. Partially completed tasks should stick
around and be reverted to uncomplete.
-rw-r--r-- | ftplugin/todo.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index c8a0cad..323e5ec 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -9,7 +9,7 @@ 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>TwodoRemoveOldTodos :<c-u>g/^\s*[vSx] /d \| nohlsearch<cr> +nnoremap <silent> <buffer> <Plug>TwodoRemoveOldTodos :<c-u>g/^\s*[vx] /d \| nohlsearch<cr> if !hasmapto('<Plug>TwodoNewTodoBelow') || !maparg('<leader>n', 'n') nmap <silent> <buffer> <leader>n <Plug>TwodoNewTodoBelow |