diff --git a/autoload/todo/txt.vim b/autoload/todo/txt.vim index 8475e70..88830ea 100644 --- a/autoload/todo/txt.vim +++ b/autoload/todo/txt.vim @@ -25,7 +25,7 @@ function! s:get_current_date() return strftime('%Y-%m-%d') endfunction -function! todo#txt#prepend_date() +function! todo#txt#replace_date() let current_line = getline('.') if (current_line =~ '^\(([a-zA-Z]) \)\?\d\{2,4\}-\d\{2\}-\d\{2\} ') && \ exists('g:todo_existing_date') && g:todo_existing_date == 'n' diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index b832a1e..b8709da 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -97,11 +97,11 @@ if !hasmapto("date",'i') endif if !hasmapto("d",'n') - nnoremap