diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), "\<cr>") . "\<cr>") endfunction -command! -nargs=? -range REPL call s:terminal(<line1>, <line2>, <f-args>) +command! -nargs=? -range REPL call s:repl(<line1>, <line2>, <f-args>) "----------------Autorun----------------" |