Currently when I use :terminal to quickly open a terminal in vim, it opens in a new pane. Is it possible to change this behaviour so that it replaces the current one? I realise this would be undesirable for most, but I would rather open the new pane and get it where I want it first (maybe I'll need it open for a little while on the far right of the screen, but if I call :terminal it'll split horizontally and put the terminal on the bottom. It's also much quicker and easier to resize the pane with shortcuts before calling :terminal)

Is this possible?


1 Answer 1


You can replace the current window with a terminal using

:terminal ++curwin
:ter ++curwin     " shorter form

You can create a mapping or command for convenience

nnoremap \t :terminal ++curwin<cr>
command! Terminal terminal ++curwin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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