How do I open a file found in Vim's path setting in a new split without typing the full path?
:sfind (split-find) searches Vim's path setting for a file matching the given name and opens it in a new horizontal split, all in one command.
category:
navigation
tags:
#navigation
#buffers
#windows
#ex-commands
How do I open a new empty buffer in a horizontal split without opening any file?
n creates a new empty buffer and opens it in a horizontal split above the current window.
category:
buffers-windows
tags:
#buffers-windows
#editing
How do I open a file explorer in a vertical split without any plugins?
Vim ships with netrw, a built-in file explorer that requires no plugins.
category:
plugins
tags:
#plugins
#buffers
#windows
How do I resize split windows using the keyboard in Vim?
<C-w>+ / <C-w>- / <C-w>> / <C-w><
Vim provides keyboard shortcuts to resize split windows without reaching for the mouse.
category:
buffers-windows
tags:
#windows
#buffers
#navigation
How do I open the alternate (previously visited) buffer in a new split window?
Vim tracks the alternate buffer — the last file you were editing before the current one.
category:
buffers-windows
tags:
#buffers-windows
#navigation
#windows
How do I keep a split at a fixed width when opening and closing other windows?
When you use a sidebar-style split for file trees, docs, or logs, automatic window equalization can constantly resize it.
category:
buffers-windows
tags:
#buffers
#windows
#layout
#workflow
How do I open the alternate buffer in a new split while keeping my current window unchanged?
If you often compare your current file against the previously visited buffer, replacing the current window is disruptive.
category:
buffers-windows
tags:
#buffers
#windows
#splits
#navigation
How do I keep multiple split windows scrolling and cursoring in sync?
:windo setlocal scrollbind cursorbind
When reviewing related files side by side, alignment drifts quickly if each window scrolls independently.
category:
buffers-windows
tags:
#buffers-windows
#windows
#scrolling
#comparison
How do I split the window vertically in Vim?
The :vsplit command (or :vs for short) splits the current window vertically, creating a new window side-by-side with the current one.
category:
buffers-windows
tags:
#buffers-windows
#windows
#ex-commands
How do I open another buffer in a split without changing the alternate-file register?
The alternate-file register (#) is easy to disturb when jumping around buffers, and many advanced motions depend on it (, # expansions, quick two-file toggles).
category:
buffers-windows
tags:
#buffers
#windows
#command-line
#navigation
How do I open all loaded buffers into split windows at once?
The :sball command (short for split all) opens every loaded buffer in its own horizontal split window in one shot.
category:
buffers-windows
tags:
#buffers-windows
#buffers
#windows
#tabs
How do I rotate split windows forward without reopening any buffers?
When a split layout is correct but the window positions are awkward, you do not need to close and reopen anything.
category:
buffers-windows
tags:
#windows
#buffers
#command-line
#navigation
How do I open a file in a read-only split window in Vim?
The :sview command opens a file in a horizontal split window with the buffer set to read-only.
category:
buffers-windows
tags:
#buffers-windows
#windows
#navigation
#ex-commands
How do I move the current split into a new tab and immediately jump back to the previous tab?
When a split temporarily becomes the center of attention, promoting it to its own tab can reduce layout noise.
category:
buffers-windows
tags:
#buffers
#windows
#tabs
#navigation
How do I open a specific buffer in a new split without navigating away from my current buffer?
:sbuffer {N} opens buffer number N in a new horizontal split, leaving your current window untouched.
category:
buffers-windows
tags:
#buffers-windows
#buffers
#windows
#navigation
How do I open a terminal in the current window instead of a new split?
By default, :terminal opens a new split window for the terminal emulator.
category:
buffers-windows
tags:
#terminal
#buffers
#windows
#shell
#ex-commands
How do I move a split window into its own tab?
The T (Ctrl+w then Shift+t) command moves the current split window into a new tab page.
category:
buffers-windows
tags:
#buffers-windows
#windows
#tabs
#normal-mode
How do I open the alternate file in a new split window without typing its name?
Press (Ctrl+W followed by Ctrl+6) to open the alternate file in a horizontal split.
category:
buffers-windows
tags:
#buffers-windows
#navigation
#buffers
How do I open a Telescope picker result in a split or new tab instead of the current window?
<C-x> / <C-v> / <C-t> (in Telescope)
When browsing results in a Telescope picker, you are not limited to opening selections in the current window.
category:
plugins
tags:
#navigation
#buffers-windows
#tabs
#plugins
How do I open Vim help pages in a new tab instead of a split?
By default, :help opens in a horizontal split, which can feel cramped.
category:
buffers-windows
tags:
#buffers
#windows
#tabs