Keep cursor pos on sorting see #33

This commit is contained in:
David Beniamine
2019-01-23 11:00:28 +01:00
parent 93480dd2c7
commit a2090399fb
2 changed files with 9 additions and 7 deletions

View File

@@ -49,9 +49,9 @@ if !exists("g:Todo_txt_do_not_map") || ! g:Todo_txt_do_not_map
noremap <script> <silent> <buffer> <localleader>spc :call todo#HierarchicalSort('+', '@',1)<CR>
" Sort tasks {{{3
nnoremap <script> <silent> <buffer> <localleader>s :call todo#Sort()<CR>
nnoremap <script> <silent> <buffer> <localleader>s@ :sort /.\{-}\ze@/ <CR>
nnoremap <script> <silent> <buffer> <localleader>s+ :sort /.\{-}\ze+/ <CR>
nnoremap <script> <silent> <buffer> <localleader>s :call todo#Sort("")<CR>
nnoremap <script> <silent> <buffer> <localleader>s@ :call todo#Sort("@")<CR>
nnoremap <script> <silent> <buffer> <localleader>s+ :call todo#Sort("+")<CR>
" Priorities {{{3
" TODO: Make vim-repeat work on inc/dec priority