Add g:repl_no_default_keymappings
Enable <leader>i to :Repl
This commit is contained in:
parent
9a33645eb7
commit
c0ff29aeeb
@ -33,6 +33,13 @@ let g:repl_split_command = get(g:, 'repl_split_command', 'split')
|
|||||||
command! -bar -nargs=0 Repl call repl#run_repl()
|
command! -bar -nargs=0 Repl call repl#run_repl()
|
||||||
nnoremap <silent> <Plug>(repl-run) :<C-u>call repl#run_repl()<CR>
|
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
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
Reference in New Issue
Block a user