From e24499b61189c1cde025a1fd1063a9b21f8e101b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 15 Oct 2021 20:50:26 +0200 Subject: Change `` to `` Allow the leader to be different for the todo filetype. --- doc/todo.txt | 16 ++++++++-------- ftplugin/todo.vim | 32 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/doc/todo.txt b/doc/todo.txt index d02505f..5e135a7 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -27,49 +27,49 @@ MAPPINGS *todo-mappings* TwodoNewTodoBelow Add a new to-do below the current line. - Default: n + Default: n *todo-TwodoNewTodoAbove* TwodoNewTodoAbove Add a new to-do above the current line. - Default: N + Default: N *todo-TwodoMarkComplete* TwodoMarkComplete Mark the current to-do complete. - Default: c + Default: c *todo-TwodoMarkDeleted* TwodoMarkDeleted Mark the current to-do deleted. - Default: d + Default: d *todo-TwodoMarkPartiallyCompleted* TwodoMarkPartiallyCompleted Mark the current to-do partially complete. - Default: s + Default: s *todo-TwodoRemoveOldTodos* TwodoRemoveOldTodos Remove todos marked complete and deleted. - Default: R + Default: R *todo-TwodoEscalate* TwodoEscalate Increase the priority of the current to-do. - Default: = + Default: = *todo-TwodoDescalate* TwodoDescalate Decrease the priority of the current to-do. - Default: - + Default: - *todo-TwodoNextIncomplete* TwodoNextIncomplete diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index d79ae8d..e1b3ddb 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -36,36 +36,36 @@ nnoremap TwodoPreviousIncomplete :call todo#motion# onoremap TwodoNextIncomplete :call todo#motion#NextIncomplete() onoremap TwodoPreviousIncomplete :call todo#motion#PreviousIncomplete() -if !hasmapto('TwodoNewTodoBelow') && !maparg('n', 'n') - nmap n TwodoNewTodoBelow +if !hasmapto('TwodoNewTodoBelow') && !maparg('n', 'n') + nmap n TwodoNewTodoBelow endif -if !hasmapto('TwodoNewTodoAbove') && !maparg('N', 'n') - nmap N TwodoNewTodoAbove +if !hasmapto('TwodoNewTodoAbove') && !maparg('N', 'n') + nmap N TwodoNewTodoAbove endif -if !hasmapto('TwodoMarkComplete') && !maparg('c', 'n') - nmap c TwodoMarkComplete +if !hasmapto('TwodoMarkComplete') && !maparg('c', 'n') + nmap c TwodoMarkComplete endif -if !hasmapto('TwodoMarkDeleted') && !maparg('d', 'n') - nmap d TwodoMarkDeleted +if !hasmapto('TwodoMarkDeleted') && !maparg('d', 'n') + nmap d TwodoMarkDeleted endif -if !hasmapto('TwodoMarkPartiallyCompleted') && !maparg('s', 'n') - nmap s TwodoMarkPartiallyCompleted +if !hasmapto('TwodoMarkPartiallyCompleted') && !maparg('s', 'n') + nmap s TwodoMarkPartiallyCompleted endif -if !hasmapto('TwodoRemoveOldTodos') && !maparg('R', 'n') - nmap R TwodoRemoveOldTodos +if !hasmapto('TwodoRemoveOldTodos') && !maparg('R', 'n') + nmap R TwodoRemoveOldTodos endif -if !hasmapto('TwodoEscalate') && !maparg('=', 'n') - nmap = TwodoEscalate +if !hasmapto('TwodoEscalate') && !maparg('=', 'n') + nmap = TwodoEscalate endif -if !hasmapto('TwodoDescalate') && !maparg('-', 'n') - nmap - TwodoDescalate +if !hasmapto('TwodoDescalate') && !maparg('-', 'n') + nmap - TwodoDescalate endif if !hasmapto('TwodoNextIncomplete', 'n') && !maparg(']u', 'n') -- cgit v1.2.3