When I type :terminal
to vim8.1, it splits the window and I use it split window. I want to open a new buffer and open the terminal inside it. Basically, like neovim's terminal emulator. Is there a way to do like this?
2 Answers
I think you can use call term_open()
instead. if you want to open shell in current win, it is:
call term_start($SHELL, {'curwin' : 1})
BTW, if you think this command is too long, you can create custom command:
command! Terminal call term_start($SHELL, {'curwin' : 1)
-
3
:terminal
command:term
command. It's not only about this option, but other related options you might want to consider if you want to know what:term
.