Use localleader instead of leader

This commit is contained in:
David Beniamine
2014-10-10 11:35:14 +02:00
parent 5425c33992
commit 2f64c2ff21

View File

@@ -41,8 +41,8 @@ endfunction
endfunction
" Mappings {{{1
" Sort tasks {{{2
if !hasmapto("<leader>s",'n')
" Sort tasks {{{2
if !hasmapto("<localleader>s",'n')
nnoremap <script> <silent> <buffer> <localleader>s :sort<CR>
endif
@@ -50,31 +50,31 @@ if !hasmapto("date<Tab>",'i')
if !hasmapto("date<Tab>",'i')
inoremap <script> <silent> <buffer> date<Tab> <C-R>=strftime("%Y-%m-%d")<CR>
endif
if !hasmapto("<leader>d",'n')
if !hasmapto("<localleader>d",'n')
nnoremap <script> <silent> <buffer> <localleader>d :call TodoTxtPrependDate()<CR>
endif
if !hasmapto("<leader>d",'v')
if !hasmapto("<localleader>d",'v')
vnoremap <script> <silent> <buffer> <localleader>d :call TodoTxtPrependDate()<CR>
endif
" Mark done {{{2
if !hasmapto("<leader>x",'n')
" Mark done {{{2
if !hasmapto("<localleader>x",'n')
nnoremap <script> <silent> <buffer> <localleader>x :call TodoTxtMarkAsDone()<CR>
endif
if !hasmapto("<leader>x",'v')
if !hasmapto("<localleader>x",'v')
vnoremap <script> <silent> <buffer> <localleader>x :call TodoTxtMarkAsDone()<CR>
endif
" Mark all done {{{2
if !hasmapto("<leader>X",'n')
" Mark all done {{{2
if !hasmapto("<localleader>X",'n')
nnoremap <script> <silent> <buffer> <localleader>X :call TodoTxtMarkAllAsDone()<CR>
endif
" Remove completed {{{2
if !hasmapto("<leader>D",'n')
" Remove completed {{{2
if !hasmapto("<localleader>D",'n')
nnoremap <script> <silent> <buffer> <localleader>D :call TodoTxtRemoveCompleted()<CR>
endif