To open a new tab in Vim, use command:
:tabnew
To search for a file in current path and open it in a new tab. Use command:
:tabf filename
Switch between tabs using command:
:tabn # Moving to next tab
:tabp # Moving to previous tab
Moving to the last or the first tab
:tabfir # Moving to first tab
:tablast # Moving to last tab
You can move current tab to a specific spot in the tab order using:
:tabm n # With n is new postion
You can use:
:tabdo command
to run a command in vim. For example:
:tabdo %s/foo/bar/g # replace all foo string by bar