Sample Header Ad - 728x90

Opening a vertical terminal in Vim 8.1

43 votes
4 answers
40006 views
Vim 8.1 added the :terminal command, which opens up a new bash terminal as a split. However, it always seems to be a horizontal split, and I prefer vertical splits. Is there a way to open a terminal as a vertical split without using: :vsp :terminal j :q Alternatively, is there a way I could add it as a command in my *.vimrc*, like so: command Vterm :vsp | :terminal | j | :q The command above chokes on trying to execute j, opens a new vim split with the following: > executing job failed: No such file or directory Just having: command Vterm :vsp | :terminal Works fine, but leaves the original split.
Asked by Schiem (533 rep)
May 18, 2018, 06:49 PM
Last activity: Apr 26, 2024, 04:48 PM