From 11506a87a8d53d1e57d9db51cb6ff2266d91709d Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 15 Aug 2020 16:52:44 -0400 Subject: .vimrc: s:terminal -> s:repl --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 34aa709..4ff11d5 100644 --- a/.vimrc +++ b/.vimrc @@ -255,7 +255,7 @@ let g:nnn#layout = 'new' " Opens the nnn window in a split let g:nnn#layout = { 'left': '~20%' } " Left 20% of the window " send commands to terminal https://vi.stackexchange.com/questions/14300/vim-how-to-send-entire-line-to-a-buffer-of-type-terminal -function s:terminal(start, end, language) +function s:repl(start, end, language) let g:terminal_buffer = get(g:, 'terminal_buffer', -1) if g:terminal_buffer == -1 || !bufexists(g:terminal_buffer) terminal ++rows=10 @@ -269,7 +269,7 @@ function s:terminal(start, end, language) call term_sendkeys(g:terminal_buffer, join(getline(a:start, a:end), "\") . "\") endfunction -command! -nargs=? -range REPL call s:terminal(, , ) +command! -nargs=? -range REPL call s:repl(, , ) "----------------Autorun----------------" -- cgit v1.2.3