diff --git a/plugin/repl.vim b/plugin/repl.vim index 99efbb6..c7b48c7 100644 --- a/plugin/repl.vim +++ b/plugin/repl.vim @@ -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 (repl-run) :call repl#run_repl() +"-------------------" + +" Define default keymappings +if !exists('g:repl_no_default_keymappings') || !g:repl_no_default_keymappings + nmap i (repl-run) +endif + "-------------------" let &cpo = s:save_cpo unlet s:save_cpo