From eb5ece482d5ba3bb13f3dbee8254af70fae141d1 Mon Sep 17 00:00:00 2001 From: durcheinandr Date: Wed, 27 May 2015 16:24:48 +0200 Subject: [PATCH] shorten short due date function --- ftplugin/todo.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index 55d9ccd..88d80b3 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -75,8 +75,7 @@ endfunction function! TodoTxtSortDue() :silent! %s/\(due:\d\{4}\)-\(\d\{2}\)-\(\d\{2}\)/\1\2\3/g :sort n /due:/ - :silent! %s/\(due:\d\{4}\)/\1-/g - :silent! %s/\(due:\d\{4}-\d\{2}\)/\1-/g + :silent! %s/\(due:\d\{4}\)\(\d\{2}\)/\1-\2-/g " TODO: add time sorting (YYYY-MM-DD HH:MM) endfunction