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:
aiya000 2015-12-22 23:18:06 +09:00
parent 2069651e55
commit 2d18b5e192

View File

@ -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>