Set default repl size to 10

This commit is contained in:
s-zeng 2017-09-12 09:23:49 -04:00
parent 33ce6a44e9
commit 2df9d43738
8 changed files with 16 additions and 1 deletions

View File

@ -19,5 +19,7 @@ function! repl#clojure#open_repl() abort
let l:args = printf('%s %s', l:repl['repl'], l:repl['opt'])
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
execute l:vimshell_interactive l:args
let l:resize = ':resize 10'
execute l:resize
call vimshell#interactive#send(printf('(load-file "%s")', l:module_file))
endfunction

View File

@ -49,6 +49,7 @@ function! repl#erlang#open_repl() abort
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
execute l:vimshell_interactive l:args
call vimshell#interactive#send(printf('c(%s).', fnamemodify(l:module_file, ':t:r')))
let l:resize = ':resize 10'
execute l:resize call vimshell#interactive#send(printf('c(%s).', fnamemodify(l:module_file, ':t:r')))
execute 'cd' l:pwd
endfunction

View File

@ -19,4 +19,6 @@ function! repl#haskell#open_repl() abort
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
let l:resize = ':resize 10'
execute l:resize
endfunction

View File

@ -19,4 +19,6 @@ function! repl#idris#open_repl() abort
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
let l:resize = ':resize 10'
execute l:resize
endfunction

View File

@ -20,5 +20,7 @@ function! repl#javascript#open_repl() abort
let l:args = printf('%s %s', l:repl['repl'], l:repl['opt'])
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
execute l:vimshell_interactive l:args
let l:resize = ':resize 10'
execute l:resize
call vimshell#interactive#send('.load ' . l:module_file)
endfunction

View File

@ -19,4 +19,6 @@ function! repl#python#open_repl() abort
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
let l:test = ':resize 10'
execute l:test
endfunction

View File

@ -18,4 +18,6 @@ function! repl#ruby#open_repl() abort
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
let l:resize = ':resize 10'
execute l:resize
endfunction

View File

@ -17,5 +17,7 @@ function! repl#scheme#open_repl() abort
let l:args = printf('%s -f %s %s', l:repl['repl'], l:module_file, l:repl['opt'])
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
execute l:vimshell_interactive l:args
let l:resize = ':resize 10'
execute l:resize
endfunction