|
1 | | -*options.txt* For Vim version 9.0. Last change: 2023 Aug 15 |
| 1 | +*options.txt* For Vim version 9.0. Last change: 2023 Oct 14 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -192,10 +192,27 @@ To include white space in a string option value it has to be preceded with a |
192 | 192 | backslash. To include a backslash you have to use two. Effectively this |
193 | 193 | means that the number of backslashes in an option value is halved (rounded |
194 | 194 | down). |
| 195 | +In options 'path', 'cdpath', and 'tags', spaces have to be preceded with three |
| 196 | +backslashes instead for compatibility with version 3.0 where the options can |
| 197 | +be separated by either commas or spaces. |
| 198 | +Comma-separated options like 'backupdir' and 'tags' will also require commas |
| 199 | +to be escaped with two backslashes, whereas this is not needed for |
| 200 | +non-comma-separated ones like 'makeprg'. |
| 201 | +When setting options using |:let| and |literal-string|, you need to use one |
| 202 | +fewer layer of backslash. |
195 | 203 | A few examples: > |
196 | | - :set tags=tags\ /usr/tags results in "tags /usr/tags" |
197 | | - :set tags=tags\\,file results in "tags\,file" |
198 | | - :set tags=tags\\\ file results in "tags\ file" |
| 204 | + :set makeprg=make\ file results in "make file" |
| 205 | + :let &makeprg='make file' (same as above) |
| 206 | + :set makeprg=make\\\ file results in "make\ file" |
| 207 | + :set tags=tags\ /usr/tags results in "tags" and "/usr/tags" |
| 208 | + :set tags=tags\\\ file results in "tags file" |
| 209 | + :let &tags='tags\ file' (same as above) |
| 210 | +
|
| 211 | + :set makeprg=make,file results in "make,file" |
| 212 | + :set makeprg=make\\,file results in "make\,file" |
| 213 | + :set tags=tags,file results in "tags" and "file" |
| 214 | + :set tags=tags\\,file results in "tags,file" |
| 215 | + :let &tags='tags\,file' (same as above) |
199 | 216 |
|
200 | 217 | The "|" character separates a ":set" command from a following command. To |
201 | 218 | include the "|" in the option value, use "\|" instead. This example sets the |
@@ -4517,8 +4534,8 @@ A jump table for the options with a short description can be found at |Q_op|. |
4517 | 4534 | *'ignorecase'* *'ic'* *'noignorecase'* *'noic'* |
4518 | 4535 | 'ignorecase' 'ic' boolean (default off) |
4519 | 4536 | global |
4520 | | - Ignore case in search patterns. Also used when searching in the tags |
4521 | | - file. |
| 4537 | + Ignore case in search patterns, |cmdline-completion|, when |
| 4538 | + searching in the tags file, and non-|Vim9| |expr-==|. |
4522 | 4539 | Also see 'smartcase' and 'tagcase'. |
4523 | 4540 | Can be overruled by using "\c" or "\C" in the pattern, see |
4524 | 4541 | |/ignorecase|. |
@@ -5599,6 +5616,7 @@ A jump table for the options with a short description can be found at |Q_op|. |
5599 | 5616 | Increasing this limit above 200 also changes the maximum for Ex |
5600 | 5617 | command recursion, see |E169|. |
5601 | 5618 | See also |:function|. |
| 5619 | + Also used for maximum depth of callback functions. |
5602 | 5620 |
|
5603 | 5621 | *'maxmapdepth'* *'mmd'* *E223* |
5604 | 5622 | 'maxmapdepth' 'mmd' number (default 1000) |
@@ -8344,8 +8362,8 @@ A jump table for the options with a short description can be found at |Q_op|. |
8344 | 8362 | |+emacs_tags|: "./tags,./TAGS,tags,TAGS") |
8345 | 8363 | global or local to buffer |global-local| |
8346 | 8364 | Filenames for the tag command, separated by spaces or commas. To |
8347 | | - include a space or comma in a file name, precede it with a backslash |
8348 | | - (see |option-backslash| about including spaces and backslashes). |
| 8365 | + include a space or comma in a file name, precede it with backslashes |
| 8366 | + (see |option-backslash| about including spaces/commas and backslashes). |
8349 | 8367 | When a file name starts with "./", the '.' is replaced with the path |
8350 | 8368 | of the current file. But only when the 'd' flag is not included in |
8351 | 8369 | 'cpoptions'. Environment variables are expanded |:set_env|. Also see |
@@ -9441,29 +9459,32 @@ A jump table for the options with a short description can be found at |Q_op|. |
9441 | 9459 | as needed. |
9442 | 9460 | The "wildmenu" mode is abandoned when a key is hit that is not used |
9443 | 9461 | for selecting a completion. |
9444 | | - While the "wildmenu" is active, not using the popup menu, the |
9445 | | - following keys have special meanings: |
9446 | | - |
9447 | | - <Left> <Right> - select previous/next match (like CTRL-P/CTRL-N) |
9448 | | - <Down> - in filename/menu name completion: move into a |
9449 | | - subdirectory or submenu. |
| 9462 | + While the "wildmenu" is active, the following keys have special |
| 9463 | + meanings: |
| 9464 | + CTRL-P - go to the previous entry |
| 9465 | + CTRL-N - go to the next entry |
9450 | 9466 | <CR> - in menu completion, when the cursor is just after a |
9451 | 9467 | dot: move into a submenu. |
| 9468 | + |
| 9469 | + When not using the popup menu for command line completion, the |
| 9470 | + following keys have special meanings: |
| 9471 | + <Left> <Right> - select previous/next match (like CTRL-P/CTRL-N) |
9452 | 9472 | <Up> - in filename/menu name completion: move up into |
9453 | 9473 | parent directory or parent menu. |
| 9474 | + <Down> - in filename/menu name completion: move into a |
| 9475 | + subdirectory or submenu. |
9454 | 9476 |
|
9455 | 9477 | When using the popup menu for command line completion, the following |
9456 | 9478 | keys have special meanings: |
9457 | | - <Down> - select next match (like CTRL-N) |
| 9479 | + <Up> <Down> - select previous/next match (like CTRL-P/CTRL-N) |
| 9480 | + <PageUp> - select a match several entries back |
| 9481 | + <PageDown> - select a match several entries further |
9458 | 9482 | <Left> - in filename/menu name completion: move up into |
9459 | 9483 | parent directory or parent menu. |
9460 | 9484 | <Right> - in filename/menu name completion: move into a |
9461 | 9485 | subdirectory or submenu. |
9462 | | - <Up> - select previous match (like CTRL-P) |
9463 | 9486 | CTRL-E - end completion, go back to what was there before |
9464 | 9487 | selecting a match. |
9465 | | - CTRL-N - go to the next entry |
9466 | | - CTRL-P - go to the previous entry |
9467 | 9488 | CTRL-Y - accept the currently selected match and stop |
9468 | 9489 | completion. |
9469 | 9490 |
|
|
0 commit comments