How do I switch between tab pages?
gt and gT
The gt command moves to the next tab page and gT moves to the previous one.
10 results for "gt gT"
gt and gT
The gt command moves to the next tab page and gT moves to the previous one.
:tabnew / gt / gT
Vim's tab pages let you organize your workspace into separate views, each containing its own window layout.
buffers-windows #buffers #windows #tabs #navigation #productivity
:tabedit
Vim's tab pages let you keep separate window layouts open at the same time, each with its own set of splits.
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
<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
:tab split
:tab split opens the current buffer in a brand new tab page, giving you a second independent view of the same file.
:tab help
By default, :help opens in a horizontal split, which can feel cramped.
:tabnew | lcd /path/to/project
Vim's :lcd (local change directory) sets the working directory per window.
buffers-windows #buffers #windows #tabs #workflow #project-management
<C-w>gf
gf reads the filename under the cursor and opens it in a new tab page, keeping your current buffer untouched.
:tab sb N
How it works The :tab sb N command opens buffer number N in a brand new tab page.