QOL features
This commit is contained in:
parent
2df9d43738
commit
9b88e5b9e7
@ -21,5 +21,9 @@ function! repl#clojure#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
call vimshell#interactive#send(printf('(load-file "%s")', l:module_file))
|
call vimshell#interactive#send(printf('(load-file "%s")', l:module_file))
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -50,6 +50,11 @@ function! repl#erlang#open_repl() abort
|
|||||||
|
|
||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize call vimshell#interactive#send(printf('c(%s).', fnamemodify(l:module_file, ':t:r')))
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
|
execute l:resize
|
||||||
|
call vimshell#interactive#send(printf('c(%s).', fnamemodify(l:module_file, ':t:r')))
|
||||||
execute 'cd' l:pwd
|
execute 'cd' l:pwd
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -21,4 +21,8 @@ function! repl#haskell#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -21,4 +21,8 @@ function! repl#idris#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -22,5 +22,9 @@ function! repl#javascript#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
call vimshell#interactive#send('.load ' . l:module_file)
|
call vimshell#interactive#send('.load ' . l:module_file)
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -19,6 +19,10 @@ function! repl#python#open_repl() abort
|
|||||||
let l:args = printf('%s %s %s', l:repl['repl'], l:repl['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)
|
let l:vimshell_interactive = ':VimShellInteractive' . printf("--split='%s'", g:repl_split_command)
|
||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:test = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:test
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -20,4 +20,8 @@ function! repl#ruby#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -19,5 +19,9 @@ function! repl#scheme#open_repl() abort
|
|||||||
execute l:vimshell_interactive l:args
|
execute l:vimshell_interactive l:args
|
||||||
let l:resize = ':resize 10'
|
let l:resize = ':resize 10'
|
||||||
execute l:resize
|
execute l:resize
|
||||||
|
let l:nonum = ':set nonumber'
|
||||||
|
execute l:nonum
|
||||||
|
let l:swp = ':wincmd r'
|
||||||
|
execute l:swp
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user