Mercurial > vim
comparison runtime/doc/windows.txt @ 18831:6848b809a26e
Runtime file updates.
Commit: https://github.com/vim/vim/commit/664f3cf3f21d3699bfd179c318ef5c869c085648
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 7 16:03:51 2019 +0100
Runtime file updates.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Dec 2019 16:15:05 +0100 |
parents | 1cd44535be32 |
children | af69c9335223 |
comparison
equal
deleted
inserted
replaced
18830:a5749be04ad3 | 18831:6848b809a26e |
---|---|
1 *windows.txt* For Vim version 8.1. Last change: 2019 Oct 27 | 1 *windows.txt* For Vim version 8.1. Last change: 2019 Dec 07 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
144 CTRL-W S *CTRL-W_S* | 144 CTRL-W S *CTRL-W_S* |
145 CTRL-W CTRL-S *CTRL-W_CTRL-S* | 145 CTRL-W CTRL-S *CTRL-W_CTRL-S* |
146 :[N]sp[lit] [++opt] [+cmd] [file] *:sp* *:split* | 146 :[N]sp[lit] [++opt] [+cmd] [file] *:sp* *:split* |
147 Split current window in two. The result is two viewports on | 147 Split current window in two. The result is two viewports on |
148 the same file. | 148 the same file. |
149 | 149 |
150 Make the new window N high (default is to use half the height | 150 Make the new window N high (default is to use half the height |
151 of the current window). Reduces the current window height to | 151 of the current window). Reduces the current window height to |
152 create room (and others, if the 'equalalways' option is set, | 152 create room (and others, if the 'equalalways' option is set, |
153 'eadirection' isn't "hor", and one of them is higher than the | 153 'eadirection' isn't "hor", and one of them is higher than the |
154 current or the new window). | 154 current or the new window). |
292 Without {count}: Quit the current window. If {count} is | 292 Without {count}: Quit the current window. If {count} is |
293 given quit the {count} window. | 293 given quit the {count} window. |
294 | 294 |
295 When quitting the last window (not counting a help window), | 295 When quitting the last window (not counting a help window), |
296 exit Vim. | 296 exit Vim. |
297 | 297 |
298 When 'hidden' is set, and there is only one window for the | 298 When 'hidden' is set, and there is only one window for the |
299 current buffer, it becomes hidden. When 'hidden' is not set, | 299 current buffer, it becomes hidden. When 'hidden' is not set, |
300 and there is only one window for the current buffer, and the | 300 and there is only one window for the current buffer, and the |
301 buffer was changed, the command fails. | 301 buffer was changed, the command fails. |
302 | 302 |
303 (Note: CTRL-Q does not work on all terminals). | 303 (Note: CTRL-Q does not work on all terminals). |
304 | 304 |
305 If [count] is greater than the last window number the last | 305 If [count] is greater than the last window number the last |
306 window will be closed: > | 306 window will be closed: > |
307 :1quit " quit the first window | 307 :1quit " quit the first window |
308 :$quit " quit the last window | 308 :$quit " quit the last window |
309 :9quit " quit the last window | 309 :9quit " quit the last window |
332 given close the {count} window. | 332 given close the {count} window. |
333 | 333 |
334 When the 'hidden' option is set, or when the buffer was | 334 When the 'hidden' option is set, or when the buffer was |
335 changed and the [!] is used, the buffer becomes hidden (unless | 335 changed and the [!] is used, the buffer becomes hidden (unless |
336 there is another window editing it). | 336 there is another window editing it). |
337 | 337 |
338 When there is only one window in the current tab page and | 338 When there is only one window in the current tab page and |
339 there is another tab page, this closes the current tab page. | 339 there is another tab page, this closes the current tab page. |
340 |tab-page|. | 340 |tab-page|. |
341 | 341 |
342 This command fails when: *E444* | 342 This command fails when: *E444* |
355 :hid[e] | 355 :hid[e] |
356 :{count}hid[e] | 356 :{count}hid[e] |
357 Without {count}: Quit the current window, unless it is the | 357 Without {count}: Quit the current window, unless it is the |
358 last window on the screen. | 358 last window on the screen. |
359 If {count} is given quit the {count} window. | 359 If {count} is given quit the {count} window. |
360 | 360 |
361 The buffer becomes hidden (unless there is another window | 361 The buffer becomes hidden (unless there is another window |
362 editing it or 'bufhidden' is "unload", "delete" or "wipe"). | 362 editing it or 'bufhidden' is "unload", "delete" or "wipe"). |
363 If the window is the last one in the current tab page the tab | 363 If the window is the last one in the current tab page the tab |
364 page is closed. |tab-page| | 364 page is closed. |tab-page| |
365 | 365 |
366 The value of 'hidden' is irrelevant for this command. Changes | 366 The value of 'hidden' is irrelevant for this command. Changes |
367 to the buffer are not written and won't get lost, so this is a | 367 to the buffer are not written and won't get lost, so this is a |
368 "safe" command. | 368 "safe" command. |
369 | 369 |
370 :hid[e] {cmd} Execute {cmd} with 'hidden' is set. The previous value of | 370 :hid[e] {cmd} Execute {cmd} with 'hidden' is set. The previous value of |
378 :{count}on[ly][!] | 378 :{count}on[ly][!] |
379 CTRL-W o *CTRL-W_o* *E445* | 379 CTRL-W o *CTRL-W_o* *E445* |
380 CTRL-W CTRL-O *CTRL-W_CTRL-O* *:on* *:only* | 380 CTRL-W CTRL-O *CTRL-W_CTRL-O* *:on* *:only* |
381 Make the current window the only one on the screen. All other | 381 Make the current window the only one on the screen. All other |
382 windows are closed. For {count} see |:quit| command. | 382 windows are closed. For {count} see |:quit| command. |
383 | 383 |
384 When the 'hidden' option is set, all buffers in closed windows | 384 When the 'hidden' option is set, all buffers in closed windows |
385 become hidden. | 385 become hidden. |
386 | 386 |
387 When 'hidden' is not set, and the 'autowrite' option is set, | 387 When 'hidden' is not set, and the 'autowrite' option is set, |
388 modified buffers are written. Otherwise, windows that have | 388 modified buffers are written. Otherwise, windows that have |
389 buffers that are modified are not removed, unless the [!] is | 389 buffers that are modified are not removed, unless the [!] is |
390 given, then they become hidden. But modified buffers are | 390 given, then they become hidden. But modified buffers are |
391 never abandoned, so changes cannot get lost. | 391 never abandoned, so changes cannot get lost. |