Mercurial > vim
comparison runtime/doc/usr_08.txt @ 685:d7e33248b9c8 v7.0206
updated for version 7.0206
author | vimboss |
---|---|
date | Fri, 24 Feb 2006 23:53:04 +0000 |
parents | 4707450c2b33 |
children | d4b8e06e7c96 |
comparison
equal
deleted
inserted
replaced
684:a8caf7dd853d | 685:d7e33248b9c8 |
---|---|
1 *usr_08.txt* For Vim version 7.0aa. Last change: 2005 Apr 01 | 1 *usr_08.txt* For Vim version 7.0aa. Last change: 2006 Feb 24 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Splitting windows | 5 Splitting windows |
6 | 6 |
15 |08.4| Vertical splits | 15 |08.4| Vertical splits |
16 |08.5| Moving windows | 16 |08.5| Moving windows |
17 |08.6| Commands for all windows | 17 |08.6| Commands for all windows |
18 |08.7| Viewing differences with vimdiff | 18 |08.7| Viewing differences with vimdiff |
19 |08.8| Various | 19 |08.8| Various |
20 |08.9| Tab pages | |
20 | 21 |
21 Next chapter: |usr_09.txt| Using the GUI | 22 Next chapter: |usr_09.txt| Using the GUI |
22 Previous chapter: |usr_07.txt| Editing more than one file | 23 Previous chapter: |usr_07.txt| Editing more than one file |
23 Table of contents: |usr_toc.txt| | 24 Table of contents: |usr_toc.txt| |
24 | 25 |
502 :rightbelow {cmd} right or below the current window | 503 :rightbelow {cmd} right or below the current window |
503 :belowright {cmd} idem | 504 :belowright {cmd} idem |
504 :topleft {cmd} at the top or left of the Vim window | 505 :topleft {cmd} at the top or left of the Vim window |
505 :botright {cmd} at the bottom or right of the Vim window | 506 :botright {cmd} at the bottom or right of the Vim window |
506 | 507 |
508 | |
509 ============================================================================== | |
510 *08.9* Tab pages | |
511 | |
512 You will have noticed that windows never overlap. That means you quickly run | |
513 out of screen space. The solution for this is called Tab pages. | |
514 | |
515 Assume you are editing "thisfile". To create a new tab page use this command: > | |
516 | |
517 :tabedit thatfile | |
518 | |
519 This will edit the file "thatfile" in a window that occupies the whole Vim | |
520 window. And you will notice a bar at the top with the two file names: | |
521 | |
522 +----------------------------------+ | |
523 |_thisfile_| thatfile ____________X| | |
524 |/* thatfile */ | | |
525 |that | | |
526 |that | | |
527 |~ | | |
528 |~ | | |
529 |~ | | |
530 | | | |
531 +----------------------------------+ | |
532 | |
533 You now have two tab pages. The first one has a window for "thisfile" and the | |
534 second one a window for "thatfile". It's like two pages that are on top of | |
535 eachother, with a tab sticking out of each page showing the file name. | |
536 | |
537 Now use the mouse to click on "thisfile" in the top line. The result is | |
538 | |
539 +----------------------------------+ | |
540 | thisfile |_thatfile_____________X| | |
541 |/* thisfile */ | | |
542 |this | | |
543 |this | | |
544 |~ | | |
545 |~ | | |
546 |~ | | |
547 | | | |
548 +----------------------------------+ | |
549 | |
550 Thus you can switch between tab pages by clicking on the label in the top | |
551 line. If you don't have a mouse or don't want to use it, you can use the "gt" | |
552 command. Mnemonic: Goto Tab. | |
553 | |
554 Now let's create another tab page with the command: > | |
555 | |
556 :tab split | |
557 | |
558 This makes a new tab page with one window that is editing the same buffer as | |
559 the window we were in: | |
560 | |
561 +-------------------------------------+ | |
562 |_thisfile_| thisfile | _thatfile____X| | |
563 |/* thisfile */ | | |
564 |this | | |
565 |this | | |
566 |~ | | |
567 |~ | | |
568 |~ | | |
569 | | | |
570 +-------------------------------------+ | |
571 | |
572 You can put ":tab" before any Ex command that opens a window. The window will | |
573 be opened in a new tab page. Another example: > | |
574 | |
575 :tab help gt | |
576 | |
577 Will show the help text for "gt" in a new tab page. | |
578 | |
579 A few more things you can do with tab pages: | |
580 | |
581 - click with the mouse in the space after the last label | |
582 The next tab page will be selected, like with "gt". | |
583 | |
584 - click with the mouse on the "X" in the top right corner | |
585 The current tab page will be closed. Unless there are unsaved | |
586 changes in the current tab page. | |
587 | |
588 - double click with the mouse in the top line | |
589 A new tab page will be created. | |
590 | |
591 - the "tabonly" command | |
592 Closes all tab pages except the current one. Unless there are unsaved | |
593 changes in other tab pages. | |
594 | |
595 For more information about tab pages see |tab-page|. | |
596 | |
507 ============================================================================== | 597 ============================================================================== |
508 | 598 |
509 Next chapter: |usr_09.txt| Using the GUI | 599 Next chapter: |usr_09.txt| Using the GUI |
510 | 600 |
511 Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl: | 601 Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl: |