Mercurial > vim
comparison runtime/doc/windows.txt @ 20379:7f88f6a3ed4c
Update runtime files
Commit: https://github.com/vim/vim/commit/47e13953ffdbb9f163b901196dec8c2100b72edd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 12 22:49:12 2020 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 May 2020 23:00:04 +0200 |
parents | bceeded72898 |
children | 83cfa1ef1bf2 |
comparison
equal
deleted
inserted
replaced
20378:e3511d21c324 | 20379:7f88f6a3ed4c |
---|---|
1 *windows.txt* For Vim version 8.2. Last change: 2020 Mar 19 | 1 *windows.txt* For Vim version 8.2. Last change: 2020 May 10 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
289 :{count}q[uit] | 289 :{count}q[uit] |
290 CTRL-W q *CTRL-W_q* | 290 CTRL-W q *CTRL-W_q* |
291 CTRL-W CTRL-Q *CTRL-W_CTRL-Q* | 291 CTRL-W CTRL-Q *CTRL-W_CTRL-Q* |
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 *edit-window* |
295 When quitting the last window (not counting a help window), | 295 When quitting the last edit window (not counting help or |
296 exit Vim. | 296 preview windows), 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. |
310 " if there are fewer than 9 windows opened | 310 " if there are fewer than 9 windows opened |
311 :-quit " quit the previous window | 311 :-quit " quit the previous window |
312 :+quit " quit the next window | 312 :+quit " quit the next window |
313 :+2quit " quit the second next window | 313 :+2quit " quit the second next window |
314 < | 314 < |
315 When closing a help window, Vim will try to restore the | 315 When closing a help window, and this is not the only window, |
316 previous window layout |:helpclose|. | 316 Vim will try to restore the previous window layout, see |
317 |:helpclose|. | |
317 | 318 |
318 :q[uit]! | 319 :q[uit]! |
319 :{count}q[uit]! | 320 :{count}q[uit]! |
320 Without {count}: Quit the current window. If {count} is | 321 Without {count}: Quit the current window. If {count} is |
321 given quit the {count} window. | 322 given quit the {count} window. |
333 | 334 |
334 When the 'hidden' option is set, or when the buffer was | 335 When the 'hidden' option is set, or when the buffer was |
335 changed and the [!] is used, the buffer becomes hidden (unless | 336 changed and the [!] is used, the buffer becomes hidden (unless |
336 there is another window editing it). | 337 there is another window editing it). |
337 | 338 |
338 When there is only one window in the current tab page and | 339 When there is only one |edit-window| in the current tab page |
339 there is another tab page, this closes the current tab page. | 340 and there is another tab page, this closes the current tab |
340 |tab-page|. | 341 page. |tab-page|. |
341 | 342 |
342 This command fails when: *E444* | 343 This command fails when: *E444* |
343 - There is only one window on the screen. | 344 - There is only one window on the screen. |
344 - When 'hidden' is not set, [!] is not used, the buffer has | 345 - When 'hidden' is not set, [!] is not used, the buffer has |
345 changes, and there is no other window on this buffer. | 346 changes, and there is no other window on this buffer. |