diff options
Diffstat (limited to 'runtime/doc/tabpage.txt')
| -rw-r--r-- | runtime/doc/tabpage.txt | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt index 81336e3d22..7b0996b682 100644 --- a/runtime/doc/tabpage.txt +++ b/runtime/doc/tabpage.txt @@ -63,8 +63,8 @@ In the GUI tabpages line you can use the right mouse button to open menu. For the related autocommands see |tabnew-autocmd|. -:[count]tabe[dit] *:tabe* *:tabedit* *:tabnew* -:[count]tabnew +:[count]tabe[dit] *:tabe* *:tabedit* +:[count]tabnew *:tabnew* Open a new tabpage with an empty window, after the current tabpage. If [count] is given the new tabpage appears after the tabpage [count] otherwise the new tabpage will appear @@ -122,8 +122,8 @@ Using the mouse: If the tabpage line is displayed you can click in the "X" at the top right to close the current tabpage. A custom 'tabline' may show something else. - *:tabc* *:tabclose* -:tabc[lose][!] Close current tabpage. +:tabc[lose][!] *:tabc* *:tabclose* + Close current tabpage. This command fails when: - There is only one tabpage on the screen. *E784* - When 'hidden' is not set, [!] is not used, a buffer has @@ -149,8 +149,8 @@ something else. When a tabpage is closed the next tabpage will become the current one. This behaviour can be customized using the 'tabclose' option. - *:tabo* *:tabonly* -:tabo[nly][!] Close all other tabpages. +:tabo[nly][!] *:tabo* *:tabonly* + Close all other tabpages. When the 'hidden' option is set, all buffers in closed windows become hidden. When 'hidden' is not set, and the 'autowrite' option is set, @@ -184,9 +184,9 @@ Using the mouse: If the tabpage line is displayed you can click in a tabpage label to switch to that tabpage. Click where there is no label to go to the next tabpage. 'tabline' -:tabn[ext] *:tabn* *:tabnext* *gt* -<C-PageDown> *CTRL-<PageDown>* *<C-PageDown>* -gt *i_CTRL-<PageDown>* *i_<C-PageDown>* +:tabn[ext] *:tabn* *:tabnext* +<C-PageDown> *CTRL-<PageDown>* *<C-PageDown>* *i_CTRL-<PageDown>* *i_<C-PageDown>* +gt *gt* Go to the next tabpage. Wraps around from the last to the first one. @@ -208,10 +208,11 @@ gt *i_CTRL-<PageDown>* *i_<C-PageDown>* {count}<C-PageDown> {count}gt Go to tabpage {count}. The first tabpage has number one. -:tabp[revious] *:tabp* *:tabprevious* *gT* *:tabN* -:tabN[ext] *:tabNext* *CTRL-<PageUp>* -<C-PageUp> *<C-PageUp>* *i_CTRL-<PageUp>* *i_<C-PageUp>* -gT Go to the previous tabpage. Wraps around from the first one +:tabp[revious] *:tabp* *:tabprevious* +:tabN[ext] *:tabN* *:tabNext* +<C-PageUp> *CTRL-<PageUp>* *<C-PageUp>* *i_CTRL-<PageUp>* *i_<C-PageUp>* +gT *gT* + Go to the previous tabpage. Wraps around from the first one to the last one. :tabp[revious] {count} @@ -221,15 +222,17 @@ gT Go to the previous tabpage. Wraps around from the first one to the last one. Note that the use of {count} is different from |:tabnext|, where it is used as the tabpage number. -:tabr[ewind] *:tabfir* *:tabfirst* *:tabr* *:tabrewind* -:tabfir[st] Go to the first tabpage. +:tabr[ewind] *:tabr* *:tabrewind* +:tabfir[st] *:tabfir* *:tabfirst* + Go to the first tabpage. - *:tabl* *:tablast* -:tabl[ast] Go to the last tabpage. +:tabl[ast] *:tabl* *:tablast* + Go to the last tabpage. -<C-Tab> *CTRL-<Tab>* *<C-Tab>* -g<Tab> *g<Tab>* *CTRL-W_g<Tab>* -CTRL-W g<Tab> Go to the last accessed tabpage. +<C-Tab> *CTRL-<Tab>* *<C-Tab>* +g<Tab> *g<Tab>* +CTRL-W g<Tab> *CTRL-W_g<Tab>* + Go to the last accessed tabpage. Other commands: *:tabs* @@ -281,8 +284,7 @@ clarification what +N means in this context see |[range]|. LOOPING OVER TABPAGES: - *:tabd* *:tabdo* -:[range]tabd[o] {cmd} +:[range]tabd[o] {cmd} *:tabd* *:tabdo* Execute {cmd} in each tabpage or, if [range] is given, only in tabpages which tabpage number is in the [range]. It works like doing this: > |