Create test/variable.vim

Add s:suite.g_repl_filetype_repl_is_valid()
This commit is contained in:
aiya000
2015-12-23 13:43:31 +09:00
parent dd286da039
commit e23365bca9
8 changed files with 62 additions and 27 deletions

View File

@@ -10,13 +10,12 @@ function! repl#python#open_repl() abort
let l:module_file = expand('%:p')
endif
let l:repl = get(g:, 'repl_filetype_repl.python.repl', g:repl#default_filetype_repl.python['repl'])
let l:opt = get(g:, 'repl_filetype_repl.python.opt', g:repl#default_filetype_repl.python['opt'])
if !executable(l:repl)
call repl#echo_error(printf("You don't have repl: '%s'", l:repl))
let l:repl = repl#get_filetype_repl('python')
if !executable(l:repl['repl'])
call repl#echo_error(printf("You don't have repl: '%s'", l:repl['repl']))
return
endif
let l:args = printf('%s %s %s', l:repl, l:opt, l:module_file)
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['opt'], l:module_file)
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
execute l:vimshell_interactive l:args
endfunction