Keep only the current window
Ctrl-w o
Example
Normal 0 / 1Normal 1 / 1Close the other windows in the current 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
Close the other windows in the current tab page
Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Tab pages
- Tab 1 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 1 · alpha.txt Active
80 columns × 23 lines
Tab pages
- Tab 1 Active
alpha.txt
Start in Normal mode. Window labels use the current window-ID order in each frame and can change after a window closes; they are separate from Vim window numbers. The panel shows observed positions, sizes and the active window in an 80-column example workspace.
one two
three four
five six
keepCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Close the other windows in the current tab page.
Ctrl-w followed by o behaves like :only. Windows with changes that cannot be abandoned may prevent closing; hidden and buffer settings affect the result.