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?


Thanks to Christian Brabandt, :ter ++curwin was the thing that I want.


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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.