Close the other windows in this tab page
:only
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Close the other windows in this 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
Option · number
- Local number
0- Global number
0
Command entered · ready to apply
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
Option · number
- Local number
0- Global number
0
Closed the other windows in this tab page.
Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Tab pages
- Tab 1 Active
alpha.txt
Option · number
- Local number
0- Global number
0
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
Option · number
- Local number
0- Global number
0
After
Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Tab pages
- Tab 1 Active
alpha.txt
Option · number
- Local number
0- Global number
0
Start in Normal mode. The displayed literal command supplies any required size or completing split command. All windows belong to this isolated example.
one two
three four
five six
keepCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Run :only to keep the current window and close the other windows in this tab page. Windows in other tabs stay open. Unsaved buffers can prevent a window from closing.