diff --git a/autoload/repl/clojure.vim b/autoload/repl/clojure.vim index 18b7ef9..93cd172 100644 --- a/autoload/repl/clojure.vim +++ b/autoload/repl/clojure.vim @@ -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 diff --git a/autoload/repl/erlang.vim b/autoload/repl/erlang.vim index 8a1d35f..81d1aac 100644 --- a/autoload/repl/erlang.vim +++ b/autoload/repl/erlang.vim @@ -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 diff --git a/autoload/repl/haskell.vim b/autoload/repl/haskell.vim index 67e7317..cfde15c 100644 --- a/autoload/repl/haskell.vim +++ b/autoload/repl/haskell.vim @@ -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 diff --git a/autoload/repl/idris.vim b/autoload/repl/idris.vim index 29ceb5f..2605475 100644 --- a/autoload/repl/idris.vim +++ b/autoload/repl/idris.vim @@ -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 diff --git a/autoload/repl/javascript.vim b/autoload/repl/javascript.vim index 5c3e52a..5b6b327 100644 --- a/autoload/repl/javascript.vim +++ b/autoload/repl/javascript.vim @@ -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 diff --git a/autoload/repl/python.vim b/autoload/repl/python.vim index 1228e60..be7af41 100644 --- a/autoload/repl/python.vim +++ b/autoload/repl/python.vim @@ -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 diff --git a/autoload/repl/ruby.vim b/autoload/repl/ruby.vim index d5bc6e4..545d550 100644 --- a/autoload/repl/ruby.vim +++ b/autoload/repl/ruby.vim @@ -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 diff --git a/autoload/repl/scheme.vim b/autoload/repl/scheme.vim index b6d4de6..989d443 100644 --- a/autoload/repl/scheme.vim +++ b/autoload/repl/scheme.vim @@ -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