Tabs

:tabnew, gt, gT โ€” tabs are layouts of windows, not files.

Keys: :tabnew, gt, gT

:tabnew creates a new tab. gt cycles forward; gT backward. Each tab can have its own arrangement of splits. Most users don't need tabs at all.

Vim's tabs are not what tabs mean in other editors. In Vim, a tab is a layout of windows โ€” a saved arrangement of splits. The same buffer can appear in multiple tabs; closing a tab doesn't close the buffers it showed.

New tab
KeyNote
:
t
a
b
n
e
w
Enter
Next tab
KeyNote
g
t
Previous tab
KeyNote
g
T
Close current tab
KeyNote
:
t
a
b
c
l
o
s
e
Enter
Close all other tabs
KeyNote
:
t
a
b
o
Enter
Move tab to position n
KeyNote
:
t
a
b
m
o
v
e
{n}
Enter

See also: Buffers, Buffer vs Window vs Tab