Vim: Terminal Windows
Open terminal buffer in a left window vertically split
' ..relative to the active window
:lefta[bove] vert term pwsh
:abo[veleft] vert term pwsh
' ..same but order swapped
:vert lefta[bove] term pwsh
:vert abo[veleft] term pwsh
' ..relative to the vim window
:to[pleft] vert term pwsh
' ..same but order swapped
:vert to[pleft] term pwsh
Notes
- Order of
vert
does not matter when used with these commands vert
is needed in all forms becauseterm
is a horizontal split command. Without it, theabove/top
sense would apply, respectively, instead ofleft
.- Since this case uses
vert
, the:lefta
form seems more natural than:abo
, but both work. - No inverted form for
:to
. If:lefttop
were it, would fit better withvert
. left
is common betweenabove
andtop
forms although with a different meaning. When used in thetop
form, left means left of all windows. The distinction in meaning between the latter is “above” active window versus “top” of vim window (or all windows).- When a command splits a window vertically, then the window will always be to the left
Open terminal in a right window vertically split
' ..relative to active window
:rightb[elow] vert term pwsh
:bel[owright] vert term pwsh
' ..same but order swapped
:vert rightb[elow] term pwsh
:vert bel[owright] term pwsh
' ..relative to vim window
:bo[ttomright] vert term pwsh
' ..same but order swapped
:vert bo[ttomright] term pwsh
Notes
- Since this case uses
vert
,:rightb
seems more natural than:bel
but both work. - No inverted form for
:bo
. If:lefttop
were it, would fit better withvert
.