Open a new tab page
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1Cursor on line 1, column 1Open a new tab page. The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Windows
- Window 1 · alpha.txt Active
80 columns × 22 lines- Window 2 · beta.txt
80 columns × 22 lines- Window 3 · gamma.txt
80 columns × 22 lines
Buffers
- 1 · alpha.txt Active
loaded · listed · alternate · one two ↩ three four- 2 · beta.txt
loaded · listed · beta tab- 3 · gamma.txt
loaded · listed · gamma tab
Tab pages
- Tab 1 Active
alpha.txt- Tab 2
beta.txt- Tab 3
gamma.txt
Option · number
- Local number
0- Global number
0
Command entered · ready to apply The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Windows
- Window 1 · alpha.txt Active
80 columns × 22 lines- Window 2 · beta.txt
80 columns × 22 lines- Window 3 · gamma.txt
80 columns × 22 lines
Buffers
- 1 · alpha.txt Active
loaded · listed · alternate · one two ↩ three four- 2 · beta.txt
loaded · listed · beta tab- 3 · gamma.txt
loaded · listed · gamma tab
Tab pages
- Tab 1 Active
alpha.txt- Tab 2
beta.txt- Tab 3
gamma.txt
Option · number
- Local number
0- Global number
0
Opened a new tab with an empty buffer. The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Windows
- Window 1 · alpha.txt
80 columns × 22 lines- Window 4 · [No Name] Active
80 columns × 22 lines- Window 2 · beta.txt
80 columns × 22 lines- Window 3 · gamma.txt
80 columns × 22 lines
Buffers
- 1 · alpha.txt
loaded · listed · alternate · one two ↩ three four- 2 · beta.txt
loaded · listed · beta tab- 3 · gamma.txt
loaded · listed · gamma tab- 4 · [No Name] Active
loaded · listed
Tab pages
- Tab 1
alpha.txt- Tab 2 Active
[No Name]- Tab 3
beta.txt- Tab 4
gamma.txt
Option · number
- Local number
0- Global number
0
Before & after
one two
three four
five six
keepCursor on line 1, column 1Windows
- Window 1 · alpha.txt Active
80 columns × 22 lines- Window 2 · beta.txt
80 columns × 22 lines- Window 3 · gamma.txt
80 columns × 22 lines
Buffers
- 1 · alpha.txt Active
loaded · listed · alternate · one two ↩ three four- 2 · beta.txt
loaded · listed · beta tab- 3 · gamma.txt
loaded · listed · gamma tab
Tab pages
- Tab 1 Active
alpha.txt- Tab 2
beta.txt- Tab 3
gamma.txt
Option · number
- Local number
0- Global number
0
Cursor on line 1, column 1Windows
- Window 1 · alpha.txt
80 columns × 22 lines- Window 4 · [No Name] Active
80 columns × 22 lines- Window 2 · beta.txt
80 columns × 22 lines- Window 3 · gamma.txt
80 columns × 22 lines
Buffers
- 1 · alpha.txt
loaded · listed · alternate · one two ↩ three four- 2 · beta.txt
loaded · listed · beta tab- 3 · gamma.txt
loaded · listed · gamma tab- 4 · [No Name] Active
loaded · listed
Tab pages
- Tab 1
alpha.txt- Tab 2 Active
[No Name]- Tab 3
beta.txt- Tab 4
gamma.txt
Option · number
- Local number
0- Global number
0
Start in Normal mode. The concrete command operates on three prepared tab pages and temporary example files. When multiple tab pages are listed, The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Details & Vim help
Example replayed in Vim
Run :tabnew to start with an empty buffer in a new tab page. Add a file name to edit that file in the new tab.