Move current window to a new tab page
Example
Normal 0 / 1Normal 1 / 1Move current window to a new tab page.
Windows
- Window 3 · alpha.txt Active
40 columns × 11 lines- Window 4 · alpha.txt
39 columns × 11 lines
- Window 2 · alpha.txt
40 columns × 10 lines- Window 1 · alpha.txt
39 columns × 10 lines
Tab pages
- Tab 1 Active
alpha.txt, alpha.txt, alpha.txt, alpha.txt
Moved the current view to new Tab 2. The Windows panel inventories all tabs: active Window 4 (80 × 22) belongs to Tab 2; Windows 1–3 remain in Tab 1. Positions belong to each tab's own layout; the panel combines separate tab layouts.
Windows
- Window 2 · alpha.txt
40 columns × 21 lines- Window 4 · alpha.txt Active
80 columns × 22 lines- Window 3 · alpha.txt
39 columns × 10 lines
- Window 1 · alpha.txt
39 columns × 10 lines
Tab pages
- Tab 1
alpha.txt, alpha.txt, alpha.txt- Tab 2 Active
alpha.txt
Before & after
Before
Windows
- Window 3 · alpha.txt Active
40 columns × 11 lines- Window 4 · alpha.txt
39 columns × 11 lines
- Window 2 · alpha.txt
40 columns × 10 lines- Window 1 · alpha.txt
39 columns × 10 lines
Tab pages
- Tab 1 Active
alpha.txt, alpha.txt, alpha.txt, alpha.txt
After
Windows
- Window 2 · alpha.txt
40 columns × 21 lines- Window 4 · alpha.txt Active
80 columns × 22 lines- Window 3 · alpha.txt
39 columns × 10 lines
- Window 1 · alpha.txt
39 columns × 10 lines
Tab pages
- Tab 1
alpha.txt, alpha.txt, alpha.txt- Tab 2 Active
alpha.txt
Start in Normal mode. The Windows panel inventories windows across all tab pages, using positions from each tab's own layout. Before the command all four windows belong to Tab 1. After it, active full-size Window 4 belongs to new Tab 2 and Windows 1–3 remain in Tab 1. The arrangement combines separate tab layouts. Window labels use per-frame sorted window-ID order and can renumber after closure; they are separate from Vim window numbers. Dimensions are captured in an 80-column example workspace.
one two
three four
five six
keepCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Move current window to a new tab page. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.