Up to now, we have learned that buffers are in-memory representations of files, and windows provide viewports that allow one or more buffers to be viewed at a time in splits. This brings us to the final concept in this section, Tabs.

Thinking back to our discussion about windows, we started with a single window, then added a few splits to create a layout. The collection of windows in the layout fills up the screen, and the full screen could be considered "a page of windows". Neovim allows you to define and switch between multiple pages of windows by organizing them into "tabs".

Here is a list of some of the more common tab-related commands.

:tabnewedit a file in a new tab page
:tabcreate new tab when opening new window
:tabslist the tab pages and what they contain
:tabcloseclose current tab page
:tabonlyclose all tab pages except the current one
:tabpreviousgo to previous tab page
:tabnextgo to next tab page
:tabNextgo to previous tab page
:tabmovemove tab page to other position
:tabfirstgo to first tab page
:tablastgo to last tab page
:tabfindfind file in 'path', edit it in a new tab page