|
1 | | -*options.txt* For Vim version 8.2. Last change: 2021 May 15 |
| 1 | +*options.txt* For Vim version 8.2. Last change: 2021 May 16 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -2843,7 +2843,8 @@ A jump table for the options with a short description can be found at |Q_op|. |
2843 | 2843 | |setcellwidths()| function to change the behavior. |
2844 | 2844 |
|
2845 | 2845 | *'encoding'* *'enc'* *E543* |
2846 | | -'encoding' 'enc' string (default: "latin1" or value from $LANG) |
| 2846 | +'encoding' 'enc' string (default for MS-Windows: "utf-8", |
| 2847 | + otherwise: value from $LANG or "latin1") |
2847 | 2848 | global |
2848 | 2849 | Sets the character encoding used inside Vim. It applies to text in |
2849 | 2850 | the buffers, registers, Strings in expressions, text stored in the |
@@ -3130,9 +3131,10 @@ A jump table for the options with a short description can be found at |Q_op|. |
3130 | 3131 | because Vim cannot detect an error, thus the encoding is always |
3131 | 3132 | accepted. |
3132 | 3133 | The special value "default" can be used for the encoding from the |
3133 | | - environment. This is the default value for 'encoding'. It is useful |
3134 | | - when 'encoding' is set to "utf-8" and your environment uses a |
3135 | | - non-latin1 encoding, such as Russian. |
| 3134 | + environment. On MS-Windows this is the system encoding. Otherwise |
| 3135 | + this is the default value for 'encoding'. It is useful when |
| 3136 | + 'encoding' is set to "utf-8" and your environment uses a non-latin1 |
| 3137 | + encoding, such as Russian. |
3136 | 3138 | When 'encoding' is "utf-8" and a file contains an illegal byte |
3137 | 3139 | sequence it won't be recognized as UTF-8. You can use the |8g8| |
3138 | 3140 | command to find the illegal byte sequence. |
@@ -7626,6 +7628,8 @@ A jump table for the options with a short description can be found at |Q_op|. |
7626 | 7628 | 'switchbuf' 'swb' string (default "") |
7627 | 7629 | global |
7628 | 7630 | This option controls the behavior when switching between buffers. |
| 7631 | + Mostly for |quickfix| commands some values are also used for other |
| 7632 | + commands, as mentioned below. |
7629 | 7633 | Possible values (comma separated list): |
7630 | 7634 | useopen If included, jump to the first open window that |
7631 | 7635 | contains the specified buffer (if there is one). |
|
0 commit comments