1. Open a new tab
Run "vim-P filename..." when starting vim ..."
: Tabe [dit]*: Tabe * *: Tabedit * *: Tabnew *
: Tabnew opens a new tab with an empty window after the current tab.
: Tabe [dit] [++ opt] [+ cmd]{file}
: Tabnew [++ opt] [+ cmd]{file}
Open new tab and edit{file}
, And others are similar to |: Edit |.
: Tabf [ind] [++ opt] [+ cmd]{file}
*: Tabf * *: Tabfind *
Open the new tab and edit{file}
, And the rest are similar to |: Find |.
{This attribute is valid only when | + file_in_path | is added during compilation}
:[count]
Tab{cmd}
*: Tab *
Run{cmd}
If it opens a new window, use the new tab instead. Cannot be used
|: Diffsplit |, |: diffpatch |, |: Execute | and |: normal |.
If omitted[count]
The tab appears after the current tab. If you specify
[count]
, The new tab appears in[count]
Tab. ": 0tab cmd"
The new tab appears at the first position. For example:
: Tab split "Open the current buffer on the new tab
: Tab help gt "Open the tab to display the help of" GT"
2.
Close the tag page
*: Tabc * *: Tabclose *
: Tabc [lose] [!] Close the current tab.
This command fails in the following situations:
-There is only one tab on the screen.* E784 *
-If 'hiddy' is not set, there is no [!], The buffer has been modified, and the buffer
No other windows.
Modifications to the buffer zone will not be written or lost. Therefore, this can be said to be "safe"
Command.
: Tabc [lose] [!]{count}
Close{count}
Tab. The failure condition is the same as the ': tabclose' above.
*: Tabo * *: Tabonly *
: Tabo [nly] [!] Close all other tabs.
If you set the 'hidden 'option, all the buffer zones that close the window become hidden.
If you do not have the "hidden" option but the "autowrite" option, write back the modified
Punch area. Otherwise, the window containing the modified buffer will not be deleted. However, if
[!], These windows are hidden. The modified buffer zone will never be abandoned, so always
These changes are not lost.
3. Switch to another tab
: Tabn [ext]*: Tabn * *: Tabnext * * GT *
<C-PageDown>
* Ctrl-<Pagedown> * * <C-Pagedown> *
GT* I _ctrl-<Pagedown> * * I _ <c-Pagedown> *
Go to the next tab. The last tab is circled to the first one.
: Tabn [ext]{count}
{count}
<C-PageDown>
{count}
Go to{count}
Tab. The first tab is numbered 1.
: TABP [revious]*: TABP * *: Tabprevious * * GT * *: Tabn *
: Tabn [ext]*: Tabnext * * Ctrl-<Pageup> *
<C-PageUp>
* <C-Pageup> * * I _ctrl-<Pageup> * * I _ <c-Pageup> *
GT to the previous tab. The first tab is redirected to the last one.
: TABP [revious]{count}
: Tabn [ext]{count}
{count}
<C-PageUp>
{count}
GT go to the front{count}
Tab. The first tab is redirected to the last one.
: Tabr [ewind]*: Tabfir * *: Tabfirst * *: Tabr * *: Tabrewind *
: Tabfir [st] to the first tab.
*: Tabl * *: Tablast *
: Tabl [ast] to the last tab.
4. Other commands:
*: Tabs *
: Tabs lists tabs and the windows they contain.
The current window displays "> ".
The modified buffer is displayed as "+ ".
5. Refresh the column tag page:
: Tabm [ove] [N]*: Tabm * *: Tabmove *
Move the current tab to the nth tab. Use 0 to make the current tab the first tag
Tab. If n does not exist, the current tab is the last one.
6. Tag pages for cycle calendars:
*: TABD * *: Tabdo *
: TABD [O]{cmd}
Execute{cmd}
.
Roughly equivalent:
:tabfirst
:{cmd}
:tabnext
:{cmd}
And so on.
Only the current window of each tab is operated. If an error occurs on a tab
Continue to access other tabs.
The last tab (or any error tab) becomes the current tab.
{cmd}
It can contain '|' to connect multiple commands.
{cmd}
You cannot open, close, or rearrange tabs.
{VI does not have this function}
{This attribute is valid only when | + listcmds | is added during compilation}
See also |: windo |, |: argdo | and |: bufdo |.