From 2d18b5e192de91221e15ff2c770c4d763433c2f8 Mon Sep 17 00:00:00 2001 From: aiya000 Date: Tue, 22 Dec 2015 23:18:06 +0900 Subject: [PATCH] Fix g:repl_filetype_repl problem .vimrc ``` let g:repl_filetype_repl = { \ 'python' : { \ 'repl' : 'python2', \ 'opt' : '-i' \ } \} ``` and run other repl. --- plugin/repl.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/repl.vim b/plugin/repl.vim index 74ee0a3..3c9e5d2 100644 --- a/plugin/repl.vim +++ b/plugin/repl.vim @@ -7,7 +7,7 @@ let s:save_cpo = &cpo set cpo&vim "#--- --- ---#" -let g:repl#default_filetype_repl = get(g:, 'repl_filetype_repl', { +let g:repl#default_filetype_repl = { \ 'haskell' : { \ 'repl' : 'ghci', \ 'opt' : '' @@ -24,7 +24,7 @@ let g:repl#default_filetype_repl = get(g:, 'repl_filetype_repl', { \ 'repl' : 'erl', \ 'opt' : '' \ } -\}) +\} command! -bar -nargs=0 Repl call repl#run_repl() nnoremap (repl-run) :Repl