summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beniamine <david@beniamine.net>2019-02-10 18:29:59 +0100
committerDavid Beniamine <david@beniamine.net>2019-02-10 18:29:59 +0100
commit9d1443b663692b7386a90eb4f81962d471ee20d8 (patch)
tree37372b197e26441f6b7222e55ae5350a4b499b0a
parent00ecbeb8b7dc827e6010fafe770cc1f5f4d7eee8 (diff)
downloadtodo.txt-vim-9d1443b663692b7386a90eb4f81962d471ee20d8.zip
Silence all sorts
-rw-r--r--autoload/todo.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/autoload/todo.vim b/autoload/todo.vim
index c6c679c..1ce11fc 100644
--- a/autoload/todo.vim
+++ b/autoload/todo.vim
@@ -179,25 +179,25 @@ function! todo#Sort(type)
let l:last=search('^\s*x','b')
let l:diff=l:last-l:first+1
" Cut the done lines
- execute ':'.l:first.'d a '.l:diff
+ silent execute ':'.l:first.'d a '.l:diff
endif
- sort /@[a-zA-Z]*/ r
- sort /+[a-zA-Z]*/ r
- sort /\v\([A-Z]\)/ r
+ silent sort /@[a-zA-Z]*/ r
+ silent sort /+[a-zA-Z]*/ r
+ silent sort /\v\([A-Z]\)/ r
"Now tasks without priority are at beggining, move them to the end
silent normal gg
let l:firstP=search('^\s*([A-Z])', 'cn')
if l:firstP != 1
let num=l:firstP-1
" Sort normal
- execute ':1 d b'.num
+ silent execute ':1 d b'.num
silent normal G"bp
endif
if l:first != 0
silent normal G"ap
- execute ':'.l:first.','.l:last.'sort /@[a-zA-Z]*/ r'
- execute ':'.l:first.','.l:last.'sort /+[a-zA-Z]*/ r'
- execute ':'.l:first.','.l:last.'sort /\v([A-Z])/ r'
+ silent execute ':'.l:first.','.l:last.'sort /@[a-zA-Z]*/ r'
+ silent execute ':'.l:first.','.l:last.'sort /+[a-zA-Z]*/ r'
+ silent execute ':'.l:first.','.l:last.'sort /\v([A-Z])/ r'
endif
endif
call setpos('.', oldcursor)