Is it possible to close all tab pages and to stay back in "no tab page mode", without exiting?
3 Answers
As romainl
points out in the comments, there is no such thing as "no tab page mode": if Vim is running you always have at least one tab.
If your tab line is displaying when you only have one tab, you need to change your 'showtabline' option (to its default value):
" Only display tab line when there are at least two tab pages:
:set showtabline = 1
You can use the :tabonly
command, to close all other tabpages at once.
Note: technically you will still have a single tabpage open, even if the tablabel does not show up.
I would close all the tab pages (:tabclose
) but the last one.
-
That is the point, I'd like to get rid of tab pages, including the last one ?– IvanDiCommented May 10, 2023 at 7:38
-
2You always have at least one tab page, with one window, displaying one buffer. That is how Vim is designed and there is no workaround for that.– romainlCommented May 10, 2023 at 8:14