Close all the tabs except the active one?

Vim

Vim Problem Overview


I'm wondering if there is any way to close all the tabs except the active one.

Any idea?

tags: current

Vim Solutions


Solution 1 - Vim

:tabo[nly]

You might want to read

:help tab

Solution 2 - Vim

Why not

:tabonly     - close all other tabs (show only the current tab)

? See here for more info

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionziiwebView Question on Stackoverflow
Solution 1 - VimWMRView Answer on Stackoverflow
Solution 2 - VimBrian AgnewView Answer on Stackoverflow