|
1 | | -*options.txt* For Vim version 9.2. Last change: 2026 Mar 02 |
| 1 | +*options.txt* For Vim version 9.2. Last change: 2026 Mar 12 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -8532,8 +8532,8 @@ A jump table for the options with a short description can be found at |Q_op|. |
8532 | 8532 | windows. |
8533 | 8533 | The number N must be between 1 and 9. See |hl-User1..9| |
8534 | 8534 | *stl-%@* |
8535 | | - @ - Insert a line break (for the |tabpanel| or when the status line |
8536 | | - 'statuslineopt' has a "maxheight" value greater than 1). |
| 8535 | + @ - Inserts a newline. This only takes effect when the "maxheight" |
| 8536 | + value of 'statuslineopt' is greater than 1, or for |tabpanel|. |
8537 | 8537 |
|
8538 | 8538 | When displaying a flag, Vim removes the leading comma, if any, when |
8539 | 8539 | that flag comes right after plaintext. This will make a nice display |
@@ -8594,31 +8594,48 @@ A jump table for the options with a short description can be found at |Q_op|. |
8594 | 8594 | < |
8595 | 8595 | *'statuslineopt'* *'stlo'* |
8596 | 8596 | 'statuslineopt' 'stlo' string (default "") |
8597 | | - global |
| 8597 | + global or local to window |global-local| |
8598 | 8598 | {not available when compiled without the |+statusline| |
8599 | 8599 | feature} |
8600 | 8600 | Optional settings for |status-line|. It can consist of the following |
8601 | 8601 | items. All are optional. Items must be separated by a comma. |
8602 | 8602 |
|
8603 | | - maxheight:{n} Set the maximum status line height to {n}. |
8604 | | - {n} must be 1 or greater. |
8605 | | - If not present, 1 is used. |
8606 | | - Check whether {n} is applicable to all windows |
8607 | | - on all tab pages, and if not, set it to the |
8608 | | - closest possible value. |
8609 | | - The option value is updated to the actual |
8610 | | - applied value. For example, setting |
8611 | | - maxheight:999 may result in a smaller value |
8612 | | - depending on the available space. |
8613 | | - When {n} is set to 2 or more, you can use "@" |
8614 | | - in 'statusline' to display information on |
8615 | | - multiple lines in the status line. |
8616 | | - See |stl-%@|. |
8617 | | - |
| 8603 | + fixedheight Fix the status line height to "maxheight". |
| 8604 | + Without this, the height varies from 1 to |
| 8605 | + "maxheight" based on the number of newline |
| 8606 | + |stl-%@| in 'statusline'. |
| 8607 | + |
| 8608 | + maxheight:{n} Set the maximum status line height to {n}. |
| 8609 | + {n} must be 1 or greater. If not specified, the |
| 8610 | + height is 1. |
| 8611 | + When {n} is 2 or more, you can use newline |
| 8612 | + |stl-%@| in 'statusline' to display information on |
| 8613 | + multiple lines. |
| 8614 | + |
| 8615 | + If {n} cannot be set due to insufficient window |
| 8616 | + height or other constraints, a best-effort |
| 8617 | + approach will be taken to set the closest possible |
| 8618 | + value that does not exceed {n}. No error will be |
| 8619 | + shown even if the setting cannot be changed. |
| 8620 | + |
| 8621 | + For the global value, a value applicable to all |
| 8622 | + windows on all tab pages is used. For a |
| 8623 | + window-local value, a value applicable to that |
| 8624 | + window is used. |
| 8625 | + Note: When the applied value differs from {n}, the |
| 8626 | + option is updated to reflect it. |
| 8627 | + Example of updated options: >vim |
| 8628 | + :set statuslineopt=maxheight:999,fixedheight |
| 8629 | + " Only 20 lines could be applied, so |
| 8630 | + " maxheight is updated to 20. |
| 8631 | + :set statuslineopt? |
| 8632 | + statuslineopt=maxheight:20,fixedheight |
| 8633 | +< |
8618 | 8634 | Examples: > |
| 8635 | + :set statuslineopt=fixedheight |
8619 | 8636 | :set stlo= |
8620 | | - :set stlo=maxheight:2 |
8621 | | - :set stlo+=maxheight:3 |
| 8637 | + :set stlo=maxheight:2,fixedheight |
| 8638 | + :set stlo-=fixedheight |
8622 | 8639 | < |
8623 | 8640 | *'suffixes'* *'su'* |
8624 | 8641 | 'suffixes' 'su' string (default ".bak,~,.o,.h,.info,.swp,.obj") |
@@ -8805,7 +8822,7 @@ A jump table for the options with a short description can be found at |Q_op|. |
8805 | 8822 |
|
8806 | 8823 | You can use |g:actual_curtabpage| within a function assigned to |
8807 | 8824 | tabpanel. |g:actual_curtabpage| represents current tab's label number. |
8808 | | - You can use "%@" or "\n" to insert a new line: > |
| 8825 | + You can use "%@" or "\n" to insert a newline: > |
8809 | 8826 |
|
8810 | 8827 | set tabpanel=%!TabPanel() |
8811 | 8828 | function! TabPanel() abort |
@@ -9096,6 +9113,42 @@ A jump table for the options with a short description can be found at |Q_op|. |
9096 | 9113 | < |
9097 | 9114 | NOTE: This option is reset when 'compatible' is set. |
9098 | 9115 |
|
| 9116 | + *'termresize'* *'trz'* |
| 9117 | +'termresize' 'trz' string (default "") |
| 9118 | + global |
| 9119 | + {only available in Unix, does not work in the GUI} |
| 9120 | + Determines the method to use for detecting window resize events, |
| 9121 | + possible values are: |
| 9122 | + "sigwinch": Use the SIGWINCH signal. |
| 9123 | + "inband": Receive resize events from the terminal via escape |
| 9124 | + sequences (recommended if supported by terminal). |
| 9125 | + "": Automatically choose depending on terminal. |
| 9126 | + |
| 9127 | + The SIGWINCH handler is always available. If set to "inband" and the |
| 9128 | + terminal does not support in-band window resize events, then the |
| 9129 | + SIGWINCH handler will be used instead as a fallback. If set to "" |
| 9130 | + (empty option), then "inband" will be used if Vim detects that the |
| 9131 | + terminal supports it, otherwise "sigwinch". |
| 9132 | + |
| 9133 | + |
| 9134 | + *'termsync'* *'tsy'* |
| 9135 | +'termsync' 'tsy' boolean (default off) |
| 9136 | + global |
| 9137 | + If the host terminal supports it, buffer all screen updates made |
| 9138 | + during a redraw cycle so that each screen is displayed in the terminal |
| 9139 | + all at once. This can prevent tearing or flickering when the terminal |
| 9140 | + updates faster than Vim can redraw. If the host terminal does not |
| 9141 | + support it or if Vim is running graphically, then this option does |
| 9142 | + nothing. |
| 9143 | + |
| 9144 | + The specification can be found at: |
| 9145 | + https://github.com/contour-terminal/vt-extensions/blob/master/synchronized-output.md |
| 9146 | + |
| 9147 | + Vim may set this option automatically at startup time when Vim is |
| 9148 | + compiled with the |+termresponse| feature, by querying the terminal |
| 9149 | + for DEC mode 2026 support. The terminal codes used are |t_BS| and |
| 9150 | + |t_ES|. |
| 9151 | + |
9099 | 9152 | *'termwinkey'* *'twk'* |
9100 | 9153 | 'termwinkey' 'twk' string (default "") |
9101 | 9154 | local to window |
|
0 commit comments