Skip to content

Commit

Permalink
Ensure mappings use nnoremap.
Browse files Browse the repository at this point in the history
This fixes a bug when the user redefines : to ;
Previously \t and \b would not work in this case.
  • Loading branch information
panozzaj committed Oct 18, 2011
1 parent f19aee0 commit 56d37ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/command-t.vim
Expand Up @@ -32,11 +32,11 @@ command -nargs=? -complete=dir CommandT call <SID>CommandTShowFileFinder(<q-args
command CommandTFlush call <SID>CommandTFlush()

if !hasmapto(':CommandT<CR>')
silent! nmap <unique> <silent> <Leader>t :CommandT<CR>
silent! nnoremap <unique> <silent> <Leader>t :CommandT<CR>
endif

if !hasmapto(':CommandTBuffer<CR>')
silent! nmap <unique> <silent> <Leader>b :CommandTBuffer<CR>
silent! nnoremap <unique> <silent> <Leader>b :CommandTBuffer<CR>
endif

function s:CommandTRubyWarning()
Expand Down

0 comments on commit 56d37ff

Please sign in to comment.