Mercurial > vim
comparison runtime/doc/windows.txt @ 674:4b8583e82cb8 v7.0201
updated for version 7.0201
author | vimboss |
---|---|
date | Sat, 18 Feb 2006 22:14:51 +0000 |
parents | 9032e4668296 |
children | 9364d114ed8d |
comparison
equal
deleted
inserted
replaced
673:513866ffe6af | 674:4b8583e82cb8 |
---|---|
1 *windows.txt* For Vim version 7.0aa. Last change: 2006 Jan 27 | 1 *windows.txt* For Vim version 7.0aa. Last change: 2006 Feb 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
65 hidden no yes 'h' | 65 hidden no yes 'h' |
66 inactive no no ' ' | 66 inactive no no ' ' |
67 | 67 |
68 Note: All CTRL-W commands can also be executed with |:wincmd|, for those | 68 Note: All CTRL-W commands can also be executed with |:wincmd|, for those |
69 places where a Normal mode command can't be used or is inconvenient. | 69 places where a Normal mode command can't be used or is inconvenient. |
70 | |
71 The main Vim window can hold several split windows. There are also tab pages | |
72 |tab-page|, each of which can hold multiple windows. | |
70 | 73 |
71 ============================================================================== | 74 ============================================================================== |
72 2. Starting Vim *windows-starting* | 75 2. Starting Vim *windows-starting* |
73 | 76 |
74 By default, Vim starts with one window, just like Vi. | 77 By default, Vim starts with one window, just like Vi. |
253 | 256 |
254 CTRL-W c *CTRL-W_c* *:clo* *:close* | 257 CTRL-W c *CTRL-W_c* *:clo* *:close* |
255 :clo[se][!] Close current window. When the 'hidden' option is set, or | 258 :clo[se][!] Close current window. When the 'hidden' option is set, or |
256 when the buffer was changed and the [!] is used, the buffer | 259 when the buffer was changed and the [!] is used, the buffer |
257 becomes hidden (unless there is another window editing it). | 260 becomes hidden (unless there is another window editing it). |
261 When there is only one window in the current tab page and | |
262 there is another tab page, this closes the current tab page. | |
263 |tab-page|. | |
258 This command fails when: *E444* | 264 This command fails when: *E444* |
259 - There is only one window on the screen. | 265 - There is only one window on the screen. |
260 - When 'hidden' is not set, [!] is not used, the buffer has | 266 - When 'hidden' is not set, [!] is not used, the buffer has |
261 changes, and there is no other window on this buffer. | 267 changes, and there is no other window on this buffer. |
262 Changes to the buffer are not written and won't get lost, so | 268 Changes to the buffer are not written and won't get lost, so |
269 | 275 |
270 *:hide* | 276 *:hide* |
271 :hid[e] Quit current window, unless it is the last window on the | 277 :hid[e] Quit current window, unless it is the last window on the |
272 screen. The buffer becomes hidden (unless there is another | 278 screen. The buffer becomes hidden (unless there is another |
273 window editing it or 'bufhidden' is "unload" or "delete"). | 279 window editing it or 'bufhidden' is "unload" or "delete"). |
280 If the window is the last one in the current tab page the tab | |
281 page is closed. |tab-page| | |
274 The value of 'hidden' is irrelevant for this command. | 282 The value of 'hidden' is irrelevant for this command. |
275 Changes to the buffer are not written and won't get lost, so | 283 Changes to the buffer are not written and won't get lost, so |
276 this is a "safe" command. | 284 this is a "safe" command. |
277 | 285 |
278 :hid[e] {cmd} Execute {cmd} with 'hidden' is set. The previous value of | 286 :hid[e] {cmd} Execute {cmd} with 'hidden' is set. The previous value of |
549 :[N]al[l][!] [N] *:al* *:all* *:sal* *:sall* | 557 :[N]al[l][!] [N] *:al* *:all* *:sal* *:sall* |
550 :[N]sal[l][!] [N] | 558 :[N]sal[l][!] [N] |
551 Rearrange the screen to open one window for each argument. | 559 Rearrange the screen to open one window for each argument. |
552 All other windows are closed. When a count is given, this is | 560 All other windows are closed. When a count is given, this is |
553 the maximum number of windows to open. | 561 the maximum number of windows to open. |
562 Only uses the current tab page |tab-page|. | |
554 When the 'hidden' option is set, all buffers in closed windows | 563 When the 'hidden' option is set, all buffers in closed windows |
555 become hidden. | 564 become hidden. |
556 When 'hidden' is not set, and the 'autowrite' option is set, | 565 When 'hidden' is not set, and the 'autowrite' option is set, |
557 modified buffers are written. Otherwise, windows that have | 566 modified buffers are written. Otherwise, windows that have |
558 buffers that are modified are not removed, unless the [!] is | 567 buffers that are modified are not removed, unless the [!] is |
618 CTRL-W t | 627 CTRL-W t |
619 :{cmd} | 628 :{cmd} |
620 CTRL-W w | 629 CTRL-W w |
621 :{cmd} | 630 :{cmd} |
622 etc. | 631 etc. |
623 < When an error is detected on one window, further | 632 < This only works in the current tab page. |
633 When an error is detected on one window, further | |
624 windows will not be visited. | 634 windows will not be visited. |
625 The last window (or where an error occurred) becomes | 635 The last window (or where an error occurred) becomes |
626 the current window. | 636 the current window. |
627 {cmd} can contain '|' to concatenate several commands. | 637 {cmd} can contain '|' to concatenate several commands. |
628 {cmd} must not open or close windows or reorder them. | 638 {cmd} must not open or close windows or reorder them. |
1071 the buffer list. When a count is given, this is the maximum | 1081 the buffer list. When a count is given, this is the maximum |
1072 number of windows to open. 'winheight' also limits the number | 1082 number of windows to open. 'winheight' also limits the number |
1073 of windows opened ('winwidth' if |:vertical| was prepended). | 1083 of windows opened ('winwidth' if |:vertical| was prepended). |
1074 Buf/Win Enter/Leave autocommands are not executed for the new | 1084 Buf/Win Enter/Leave autocommands are not executed for the new |
1075 windows here, that's only done when they are really entered. | 1085 windows here, that's only done when they are really entered. |
1086 Only uses the current tab page |tab-page|. | |
1076 | 1087 |
1077 Note: All the commands above that start editing another buffer, keep the | 1088 Note: All the commands above that start editing another buffer, keep the |
1078 'readonly' flag as it was. This differs from the ":edit" command, which sets | 1089 'readonly' flag as it was. This differs from the ":edit" command, which sets |
1079 the 'readonly' flag each time the file is read. | 1090 the 'readonly' flag each time the file is read. |
1080 | 1091 |