Add g:repl_no_default_keymappings

Enable <leader>i to :Repl
This commit is contained in:
aiya000 2015-12-23 14:54:02 +09:00
parent 9a33645eb7
commit c0ff29aeeb
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ let g:repl_split_command = get(g:, 'repl_split_command', 'split')
command! -bar -nargs=0 Repl call repl#run_repl()
nnoremap <silent> <Plug>(repl-run) :<C-u>call repl#run_repl()<CR>
"-------------------"
" Define default keymappings
if !exists('g:repl_no_default_keymappings') || !g:repl_no_default_keymappings
nmap <leader>i <Plug>(repl-run)
endif
"-------------------"
let &cpo = s:save_cpo
unlet s:save_cpo