Mercurial > vim
comparison runtime/doc/tabpage.txt @ 6474:a88d4dc02bf4 v7.4.566
updated for version 7.4.566
Problem: :argdo, :bufdo, :windo and :tabdo don't take a range.
Solution: Support the range. (Marcin Szamotulski)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Jan 2015 16:54:21 +0100 |
parents | 5d89d9b40499 |
children | c0bc9b60fb8a |
comparison
equal
deleted
inserted
replaced
6473:259b0f4f6e76 | 6474:a88d4dc02bf4 |
---|---|
1 *tabpage.txt* For Vim version 7.4. Last change: 2014 Nov 27 | 1 *tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
204 page is made the last one. > | 204 page is made the last one. > |
205 :-tabmove " move the tab page to the left | 205 :-tabmove " move the tab page to the left |
206 :tabmove " move the tab page to the right | 206 :tabmove " move the tab page to the right |
207 :.tabmove " as above | 207 :.tabmove " as above |
208 :+tabmove " as above | 208 :+tabmove " as above |
209 :0tabmove " move the tab page to the begining of the tab | 209 :0tabmove " move the tab page to the beginning of the tab |
210 " list | 210 " list |
211 :$tabmove " move the tab page to the end of the tab list | 211 :$tabmove " move the tab page to the end of the tab list |
212 < | 212 < |
213 | 213 |
214 :tabm[ove] +[N] | 214 :tabm[ove] +[N] |
222 | 222 |
223 | 223 |
224 LOOPING OVER TAB PAGES: | 224 LOOPING OVER TAB PAGES: |
225 | 225 |
226 *:tabd* *:tabdo* | 226 *:tabd* *:tabdo* |
227 :tabd[o] {cmd} Execute {cmd} in each tab page. | 227 :[range]tabd[o] {cmd} |
228 It works like doing this: > | 228 Execute {cmd} in each tab page or if [range] is given only in |
229 tab pages which tab page number is in the [range]. It works | |
230 like doing this: > | |
229 :tabfirst | 231 :tabfirst |
230 :{cmd} | 232 :{cmd} |
231 :tabnext | 233 :tabnext |
232 :{cmd} | 234 :{cmd} |
233 etc. | 235 etc. |
269 are doing. When creating a new tab page this works as if you create a new | 271 are doing. When creating a new tab page this works as if you create a new |
270 window on the same buffer and then edit another buffer. Thus ":tabnew" | 272 window on the same buffer and then edit another buffer. Thus ":tabnew" |
271 triggers: | 273 triggers: |
272 WinLeave leave current window | 274 WinLeave leave current window |
273 TabLeave leave current tab page | 275 TabLeave leave current tab page |
276 WinEnter enter window in new tab page | |
274 TabEnter enter new tab page | 277 TabEnter enter new tab page |
275 WinEnter enter window in new tab page | |
276 BufLeave leave current buffer | 278 BufLeave leave current buffer |
277 BufEnter enter new empty buffer | 279 BufEnter enter new empty buffer |
278 | 280 |
279 When switching to another tab page the order is: | 281 When switching to another tab page the order is: |
280 BufLeave | 282 BufLeave |