How do I split the window vertically in Vim?
:vsplit
The :vsplit command (or :vs for short) splits the current window vertically, creating a new window side-by-side with the current one.
:vsplit
The :vsplit command (or :vs for short) splits the current window vertically, creating a new window side-by-side with the current one.
<C-w>+ and <C-w>-
The + and - commands increase or decrease the height of the current split window by one line.
<C-w>T
The T (Ctrl+w then Shift+t) command moves the current split window into a new tab page.
buffers-windows #buffers-windows #windows #tabs #normal-mode
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
:terminal
The :terminal command opens an interactive terminal emulator directly inside a Vim window.
<C-w>=
The = (Ctrl+w then =) command resizes all open split windows so they have equal width and height.
:only
The :only command closes every window in the current tab page except the one your cursor is in.
<C-w>c
The c (Ctrl+w then c) command closes the current window without closing the buffer it contains.
:windo diffthis
The :windo diffthis command activates Vim's built-in diff mode across all visible windows, highlighting the differences between them.