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
vertdoes not matter when used with these commands vertis needed in all forms becausetermis a horizontal split command. Without it, theabove/topsense would apply, respectively, instead ofleft.- Since this case uses
vert, the:leftaform seems more natural than:abo, but both work. - No inverted form for
:to. If:lefttopwere it, would fit better withvert. leftis common betweenaboveandtopforms although with a different meaning. When used in thetopform, 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,:rightbseems more natural than:belbut both work. - No inverted form for
:bo. If:lefttopwere it, would fit better withvert.