Mercurial > vim
comparison runtime/doc/usr_08.txt @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | a209672376fd |
children | 4bac29d27e2f |
comparison
equal
deleted
inserted
replaced
855:d2a4f08396fe | 856:8cd729851562 |
---|---|
1 *usr_08.txt* For Vim version 7.0f. Last change: 2006 Apr 24 | 1 *usr_08.txt* For Vim version 7.0g. Last change: 2006 Apr 30 |
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 |
519 This will edit the file "thatfile" in a window that occupies the whole Vim | 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: | 520 window. And you will notice a bar at the top with the two file names: |
521 | 521 |
522 +----------------------------------+ | 522 +----------------------------------+ |
523 | thisfile | /thatfile/ __________X| (thatfile is bold) | 523 | thisfile | /thatfile/ __________X| (thatfile is bold) |
524 |/* thatfile */ | | 524 |/* thatfile */ | |
525 |that | | 525 |that | |
526 |that | | 526 |that | |
527 |~ | | 527 |~ | |
528 |~ | | 528 |~ | |
529 |~ | | 529 |~ | |
530 | | | 530 | | |
531 +----------------------------------+ | 531 +----------------------------------+ |
532 | 532 |
533 You now have two tab pages. The first one has a window for "thisfile" and the | 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 | 534 second one a window for "thatfile". It's like two pages that are on top of |
536 | 536 |
537 Now use the mouse to click on "thisfile" in the top line. The result is | 537 Now use the mouse to click on "thisfile" in the top line. The result is |
538 | 538 |
539 +----------------------------------+ | 539 +----------------------------------+ |
540 | /thisfile/ | thatfile __________X| (thisfile is bold) | 540 | /thisfile/ | thatfile __________X| (thisfile is bold) |
541 |/* thisfile */ | | 541 |/* thisfile */ | |
542 |this | | 542 |this | |
543 |this | | 543 |this | |
544 |~ | | 544 |~ | |
545 |~ | | 545 |~ | |
546 |~ | | 546 |~ | |
547 | | | 547 | | |
548 +----------------------------------+ | 548 +----------------------------------+ |
549 | 549 |
550 Thus you can switch between tab pages by clicking on the label in the top | 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" | 551 line. If you don't have a mouse or don't want to use it, you can use the "gt" |
558 This makes a new tab page with one window that is editing the same buffer as | 558 This makes a new tab page with one window that is editing the same buffer as |
559 the window we were in: | 559 the window we were in: |
560 | 560 |
561 +-------------------------------------+ | 561 +-------------------------------------+ |
562 | thisfile | /thisfile/ | thatfile __X| (thisfile is bold) | 562 | thisfile | /thisfile/ | thatfile __X| (thisfile is bold) |
563 |/* thisfile */ | | 563 |/* thisfile */ | |
564 |this | | 564 |this | |
565 |this | | 565 |this | |
566 |~ | | 566 |~ | |
567 |~ | | 567 |~ | |
568 |~ | | 568 |~ | |
569 | | | 569 | | |
570 +-------------------------------------+ | 570 +-------------------------------------+ |
571 | 571 |
572 You can put ":tab" before any Ex command that opens a window. The window will | 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: > | 573 be opened in a new tab page. Another example: > |
577 Will show the help text for "gt" in a new tab page. | 577 Will show the help text for "gt" in a new tab page. |
578 | 578 |
579 A few more things you can do with tab pages: | 579 A few more things you can do with tab pages: |
580 | 580 |
581 - click with the mouse in the space after the last label | 581 - click with the mouse in the space after the last label |
582 The next tab page will be selected, like with "gt". | 582 The next tab page will be selected, like with "gt". |
583 | 583 |
584 - click with the mouse on the "X" in the top right corner | 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 | 585 The current tab page will be closed. Unless there are unsaved |
586 changes in the current tab page. | 586 changes in the current tab page. |
587 | 587 |
588 - double click with the mouse in the top line | 588 - double click with the mouse in the top line |
589 A new tab page will be created. | 589 A new tab page will be created. |
590 | 590 |
591 - the "tabonly" command | 591 - the "tabonly" command |
592 Closes all tab pages except the current one. Unless there are unsaved | 592 Closes all tab pages except the current one. Unless there are unsaved |
593 changes in other tab pages. | 593 changes in other tab pages. |
594 | 594 |
595 For more information about tab pages see |tab-page|. | 595 For more information about tab pages see |tab-page|. |
596 | 596 |
597 ============================================================================== | 597 ============================================================================== |