From charlesreid1

Tabs in vim:
-------------

http://vimdoc.sourceforge.net/htmldoc/tabpage.html

to open a new file,
:e filename


to open a new tab,
:tabe
:tabnew

:tabe somefile      edit somefile in a new tab
:tabnew somefile


to run command cmd in new tab,
:tab cmd


to close tab page,
:tabc
:tabclose
:tabc 2             closes tab page 2
:tabclose 2
:tabo               close all other tab pages except the current one
:tabonly


go to next tab page,
:tabn
:tabnext
:tabn 4             go to tab page 4
:tabnext 4
5gt                 go to tab page 5


go to previous tab page,
:tabp
:tabprevious


to go to very first tab page,
:tabfir
:tabfirst
:tabr
:tabrewind


to go to very last tab page,
:tabl
:tablast


to list all tabs open,
:tabs


to move tabs,
:tabm               move current tab to be the very last tab
:tabmove

:tabm 3             move current tab to after tab number 3
:tabmove 3


to loop over tab pages,
:tabdo cmd           :tabfirst   :cmd   :tabnext   :cmd   ...etc...
:tabdo cmd