Refactor code for testing
This commit is contained in:
@@ -36,9 +36,12 @@ 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 <space>i <Plug>(repl-run)
|
||||
endif
|
||||
function! s:define_default_keymappings()
|
||||
if !exists('g:repl_no_default_keymappings') || !g:repl_no_default_keymappings
|
||||
nmap <leader>i <Plug>(repl-run)
|
||||
endif
|
||||
endfunction
|
||||
call s:define_default_keymappings()
|
||||
|
||||
"-------------------"
|
||||
let &cpo = s:save_cpo
|
||||
|
Reference in New Issue
Block a user