Vim: Tabs
Tabs in Vim allow you to organize your work into separate workspaces, each containing its own set of windows.
| Command | Description |
|---|---|
:tabnew file | Open file in a new tab. |
:tabnext | Switch to the next tab. |
:tabprev | Switch to the previous tab. |
:tabclose | Close the current tab. |
gt | Go to the next tab. |
gT | Go 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.