comparison runtime/doc/options.txt @ 11757:74abb6c84984 v8.0.0761

patch 8.0.0761: options not set properly for a terminal buffer commit https://github.com/vim/vim/commit/1f2903c43109b16594d141a730659317b15f388d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 23 19:51:01 2017 +0200 patch 8.0.0761: options not set properly for a terminal buffer Problem: Options of a buffer for a terminal window are not set properly. Solution: Add "terminal" value for 'buftype'. Make 'buftype' and 'bufhidden' not depend on the quickfix feature. Also set the buffer name and show "running" or "finished" in the window title.
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Jul 2017 20:00:05 +0200
parents 5cd9ba96561d
children 4f7081eb1e26
comparison
equal deleted inserted replaced
11756:e3e89d6460d0 11757:74abb6c84984
1 *options.txt* For Vim version 8.0. Last change: 2017 Jul 15 1 *options.txt* For Vim version 8.0. Last change: 2017 Jul 23
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1317 1317
1318 *'bufhidden'* *'bh'* 1318 *'bufhidden'* *'bh'*
1319 'bufhidden' 'bh' string (default: "") 1319 'bufhidden' 'bh' string (default: "")
1320 local to buffer 1320 local to buffer
1321 {not in Vi} 1321 {not in Vi}
1322 {not available when compiled without the |+quickfix|
1323 feature}
1324 This option specifies what happens when a buffer is no longer 1322 This option specifies what happens when a buffer is no longer
1325 displayed in a window: 1323 displayed in a window:
1326 <empty> follow the global 'hidden' option 1324 <empty> follow the global 'hidden' option
1327 hide hide the buffer (don't unload it), also when 'hidden' 1325 hide hide the buffer (don't unload it), also when 'hidden'
1328 is not set 1326 is not set
1353 1351
1354 *'buftype'* *'bt'* *E382* 1352 *'buftype'* *'bt'* *E382*
1355 'buftype' 'bt' string (default: "") 1353 'buftype' 'bt' string (default: "")
1356 local to buffer 1354 local to buffer
1357 {not in Vi} 1355 {not in Vi}
1358 {not available when compiled without the |+quickfix|
1359 feature}
1360 The value of this option specifies the type of a buffer: 1356 The value of this option specifies the type of a buffer:
1361 <empty> normal buffer 1357 <empty> normal buffer
1362 nofile buffer which is not related to a file and will not be 1358 nofile buffer which is not related to a file and will not be
1363 written 1359 written
1364 nowrite buffer which will not be written 1360 nowrite buffer which will not be written
1367 |+autocmd| feature} 1363 |+autocmd| feature}
1368 quickfix quickfix buffer, contains list of errors |:cwindow| 1364 quickfix quickfix buffer, contains list of errors |:cwindow|
1369 or list of locations |:lwindow| 1365 or list of locations |:lwindow|
1370 help help buffer (you are not supposed to set this 1366 help help buffer (you are not supposed to set this
1371 manually) 1367 manually)
1368 terminal buffer for a |terminal| (you are not supposed to set
1369 this manually)
1372 1370
1373 This option is used together with 'bufhidden' and 'swapfile' to 1371 This option is used together with 'bufhidden' and 'swapfile' to
1374 specify special kinds of buffers. See |special-buffers|. 1372 specify special kinds of buffers. See |special-buffers|.
1375 1373
1376 Be careful with changing this option, it can have many side effects! 1374 Be careful with changing this option, it can have many side effects!
7758 'termkey' 'tk' string (default "CTRL-W") 7756 'termkey' 'tk' string (default "CTRL-W")
7759 local to window 7757 local to window
7760 {not in Vi} 7758 {not in Vi}
7761 The key that precedes a Vim command in a terminal window. Other keys 7759 The key that precedes a Vim command in a terminal window. Other keys
7762 are sent to the job running in the window. 7760 are sent to the job running in the window.
7763 The string must be one key stroke. 7761 The string must be one key stroke but can be multiple bytes.
7764 NOT IMPLEMENTED YET 7762 NOT IMPLEMENTED YET
7765 7763
7766 7764
7767 *'thesaurus'* *'tsr'* 7765 *'termsize'* *'tms'*
7768 'termsize' 'tms' string (default "") 7766 'termsize' 'tms' string (default "")
7769 local to window 7767 local to window
7770 {not in Vi} 7768 {not in Vi}
7771 Size of the |terminal| window. Format: {rows}x{columns}. 7769 Size of the |terminal| window. Format: {rows}x{columns}.
7772 - When empty the terminal gets the size from the window. 7770 - When empty the terminal gets the size from the window.
7773 - When set (e.g., "24x80") the terminal size is fixed. If the window 7771 - When set (e.g., "24x80") the terminal size is not adjusted to the
7774 is smaller only the top-left part is displayed. 7772 window size. If the window is smaller only the top-left part is
7775 NOT IMPLEMENTED YET 7773 displayed.
7774 When rows is zero then use the height of the window.
7775 When columns is zero then use the width of the window.
7776 For example: "30x0" uses 30 rows with the current window width.
7777 Using "0x0" is the same as empty.
7778 Note that the command running in the terminal window may still change
7779 the size of the terminal. In that case the Vim window will be
7780 adjusted to that size, if possible.
7776 7781
7777 *'terse'* *'noterse'* 7782 *'terse'* *'noterse'*
7778 'terse' boolean (default off) 7783 'terse' boolean (default off)
7779 global 7784 global
7780 When set: Add 's' flag to 'shortmess' option (this makes the message 7785 When set: Add 's' flag to 'shortmess' option (this makes the message