You are on page 1of 1

Tabs

When starting Vim, the -p option opens each specified file in a separate tab
vim -p first.txt second.txt

:tabedit {file} edit specified file in a new tab (se abrevia tabe)

:tabclose close current tab


:tabclose {i} close i-th tab
:tabonly close all other tabs (show only the current tab)

:tabs list all tabs including their displayed windows

:tabm 0 move current tab to first


:tabm move current tab to last
:tabm {i} move current tab to position i+1

:tabn go to next tab


:tabp go to previous tab
:tabfirst go to first tab
:tablast go to last tab

In normal mode, you can type:


gt go to next tab
gT go to previous tab
{i}gt go to tab in position i

https://vim.fandom.com/wiki/Using_tab_pages

You might also like