From c0ff29aeebbc6a65bb75600ef8049c8ba2b54585 Mon Sep 17 00:00:00 2001 From: aiya000 Date: Wed, 23 Dec 2015 14:54:02 +0900 Subject: [PATCH] Add g:repl_no_default_keymappings Enable i to :Repl --- plugin/repl.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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