|
1 | | -*eval.txt* For Vim version 8.2. Last change: 2020 Dec 22 |
| 1 | +*eval.txt* For Vim version 8.2. Last change: 2020 Dec 29 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -7483,24 +7483,24 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()* |
7483 | 7483 |
|
7484 | 7484 | matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()* |
7485 | 7485 | Same as |matchfuzzy()|, but returns the list of matched |
7486 | | - strings and the list of character positions where characters |
7487 | | - in {str} matches. You can use |byteidx()|to convert a |
7488 | | - character position to a byte position. |
7489 | | - |
| 7486 | + strings, the list of character positions where characters |
| 7487 | + in {str} matches and a list of matching scores. You can |
| 7488 | + use |byteidx()|to convert a character position to a byte |
| 7489 | + position. |
7490 | 7490 |
|
7491 | 7491 | If {str} matches multiple times in a string, then only the |
7492 | 7492 | positions for the best match is returned. |
7493 | 7493 |
|
7494 | 7494 | If there are no matching strings or there is an error, then a |
7495 | | - list with two empty list items is returned. |
| 7495 | + list with three empty list items is returned. |
7496 | 7496 |
|
7497 | 7497 | Example: > |
7498 | 7498 | :echo matchfuzzypos(['testing'], 'tsg') |
7499 | | -< results in [['testing'], [[0, 2, 6]]] > |
| 7499 | +< results in [['testing'], [[0, 2, 6]], [99]] > |
7500 | 7500 | :echo matchfuzzypos(['clay', 'lacy'], 'la') |
7501 | | -< results in [['lacy', 'clay'], [[0, 1], [1, 2]]] > |
| 7501 | +< results in [['lacy', 'clay'], [[0, 1], [1, 2]], [153, 133]] > |
7502 | 7502 | :echo [{'text': 'hello', 'id' : 10}]->matchfuzzypos('ll', {'key' : 'text'}) |
7503 | | -< results in [{'id': 10, 'text': 'hello'}] [[2, 3]] |
| 7503 | +< results in [[{'id': 10, 'text': 'hello'}], [[2, 3]], [127]] |
7504 | 7504 |
|
7505 | 7505 | matchlist({expr}, {pat} [, {start} [, {count}]]) *matchlist()* |
7506 | 7506 | Same as |match()|, but return a |List|. The first item in the |
@@ -8972,7 +8972,7 @@ searchcount([{options}]) *searchcount()* |
8972 | 8972 | result. if search exceeded |
8973 | 8973 | total count, "total" value |
8974 | 8974 | becomes `maxcount + 1` |
8975 | | - (default: 0) |
| 8975 | + (default: 99) |
8976 | 8976 | pos |List| `[lnum, col, off]` value |
8977 | 8977 | when recomputing the result. |
8978 | 8978 | this changes "current" result |
@@ -10886,7 +10886,7 @@ timer_start({time}, {callback} [, {options}]) |
10886 | 10886 | is the timer ID. The callback is only invoked when Vim is |
10887 | 10887 | waiting for input. |
10888 | 10888 | If you want to show a message look at |popup_notification()| |
10889 | | - to avoid intefering with what the user is doing. |
| 10889 | + to avoid interfering with what the user is doing. |
10890 | 10890 |
|
10891 | 10891 | {options} is a dictionary. Supported entries: |
10892 | 10892 | "repeat" Number of times to repeat calling the |
@@ -12969,7 +12969,7 @@ text... |
12969 | 12969 | :exe[cute] {expr1} .. Executes the string that results from the evaluation |
12970 | 12970 | of {expr1} as an Ex command. |
12971 | 12971 | Multiple arguments are concatenated, with a space in |
12972 | | - between. To avoid the extra space use the "." |
| 12972 | + between. To avoid the extra space use the ".." |
12973 | 12973 | operator to concatenate strings into one argument. |
12974 | 12974 | {expr1} is used as the processed command, command line |
12975 | 12975 | editing keys are not recognized. |
|
0 commit comments