Mercurial > vim
comparison runtime/doc/tabpage.txt @ 21727:860cad58f557 v8.2.1413
patch 8.2.1413: previous tab page not usable from an Ex command
Commit: https://github.com/vim/vim/commit/94f4ffa7704921a3634e56b878e6dc362bc3d508
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 10 19:21:15 2020 +0200
patch 8.2.1413: previous tab page not usable from an Ex command
Problem: Previous tab page not usable from an Ex command.
Solution: Add the "#" argument for :tabnext et al. (Yegappan Lakshmanan,
closes #6677)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Aug 2020 19:30:04 +0200 |
parents | 22583b9d4efd |
children | 0db0640e16e0 |
comparison
equal
deleted
inserted
replaced
21726:c4d9bcbaf320 | 21727:860cad58f557 |
---|---|
140 :$tabclose " close the last tab page | 140 :$tabclose " close the last tab page |
141 :tabclose -2 " close the 2nd previous tab page | 141 :tabclose -2 " close the 2nd previous tab page |
142 :tabclose + " close the next tab page | 142 :tabclose + " close the next tab page |
143 :tabclose 3 " close the third tab page | 143 :tabclose 3 " close the third tab page |
144 :tabclose $ " close the last tab page | 144 :tabclose $ " close the last tab page |
145 :tabclose # " close the last accessed tab page | |
145 < | 146 < |
146 *:tabo* *:tabonly* | 147 *:tabo* *:tabonly* |
147 :tabo[nly][!] Close all other tab pages. | 148 :tabo[nly][!] Close all other tab pages. |
148 When the 'hidden' option is set, all buffers in closed windows | 149 When the 'hidden' option is set, all buffers in closed windows |
149 become hidden. | 150 become hidden. |
168 " one | 169 " one |
169 :tabonly +2 " close all tab pages except the two next | 170 :tabonly +2 " close all tab pages except the two next |
170 " one | 171 " one |
171 :tabonly 1 " close all tab pages except the first one | 172 :tabonly 1 " close all tab pages except the first one |
172 :tabonly $ " close all tab pages except the last one | 173 :tabonly $ " close all tab pages except the last one |
174 :tabonly # " close all tab pages except the last | |
175 " accessed one | |
173 | 176 |
174 | 177 |
175 SWITCHING TO ANOTHER TAB PAGE: | 178 SWITCHING TO ANOTHER TAB PAGE: |
176 | 179 |
177 Using the mouse: If the tab page line is displayed you can click in a tab page | 180 Using the mouse: If the tab page line is displayed you can click in a tab page |
190 :-tabnext " go to the previous tab page | 193 :-tabnext " go to the previous tab page |
191 :+tabnext " go to the next tab page | 194 :+tabnext " go to the next tab page |
192 :+2tabnext " go to the two next tab page | 195 :+2tabnext " go to the two next tab page |
193 :1tabnext " go to the first tab page | 196 :1tabnext " go to the first tab page |
194 :$tabnext " go to the last tab page | 197 :$tabnext " go to the last tab page |
198 :tabnext # " go to the last accessed tab page | |
195 :tabnext $ " as above | 199 :tabnext $ " as above |
196 :tabnext - " go to the previous tab page | 200 :tabnext - " go to the previous tab page |
197 :tabnext -1 " as above | 201 :tabnext -1 " as above |
198 :tabnext + " go to the next tab page | 202 :tabnext + " go to the next tab page |
199 :tabnext +1 " as above | 203 :tabnext +1 " as above |
253 " list | 257 " list |
254 :tabmove 0 " as above | 258 :tabmove 0 " as above |
255 :tabmove " move the tab page to the last | 259 :tabmove " move the tab page to the last |
256 :$tabmove " as above | 260 :$tabmove " as above |
257 :tabmove $ " as above | 261 :tabmove $ " as above |
262 :tabmove # " move the tab page after the last accessed | |
263 " tab page | |
258 | 264 |
259 :tabm[ove] +[N] | 265 :tabm[ove] +[N] |
260 :tabm[ove] -[N] | 266 :tabm[ove] -[N] |
261 Move the current tab page N places to the right (with +) or to | 267 Move the current tab page N places to the right (with +) or to |
262 the left (with -). > | 268 the left (with -). > |