Fix g:repl_filetype_repl problem
.vimrc
```
let g:repl_filetype_repl = {
\ 'python' : {
\ 'repl' : 'python2',
\ 'opt' : '-i'
\ }
\}
```
and run other repl.
This commit is contained in:
@@ -7,7 +7,7 @@ let s:save_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
"#--- --- ---#"
|
"#--- --- ---#"
|
||||||
|
|
||||||
let g:repl#default_filetype_repl = get(g:, 'repl_filetype_repl', {
|
let g:repl#default_filetype_repl = {
|
||||||
\ 'haskell' : {
|
\ 'haskell' : {
|
||||||
\ 'repl' : 'ghci',
|
\ 'repl' : 'ghci',
|
||||||
\ 'opt' : ''
|
\ 'opt' : ''
|
||||||
@@ -24,7 +24,7 @@ let g:repl#default_filetype_repl = get(g:, 'repl_filetype_repl', {
|
|||||||
\ 'repl' : 'erl',
|
\ 'repl' : 'erl',
|
||||||
\ 'opt' : ''
|
\ 'opt' : ''
|
||||||
\ }
|
\ }
|
||||||
\})
|
\}
|
||||||
|
|
||||||
command! -bar -nargs=0 Repl call repl#run_repl()
|
command! -bar -nargs=0 Repl call repl#run_repl()
|
||||||
nnoremap <Plug>(repl-run) :<C-u>Repl<CR>
|
nnoremap <Plug>(repl-run) :<C-u>Repl<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user