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