Privacy Policy
© 2025 linux101.dev

Vim: Tabs

Tabs in Vim allow you to organize your work into separate workspaces, each containing its own set of windows.

CommandDescription
:tabnew fileOpen file in a new tab.
:tabnextSwitch to the next tab.
:tabprevSwitch to the previous tab.
:tabcloseClose the current tab.
gtGo to the next tab.
gTGo to the previous tab.

Combining Splits and Tabs

You can combine splits and tabs to create a highly customized workspace. For example, you can have multiple tabs, each containing multiple split windows.