|
1 |
| -*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 08 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 10 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -6556,7 +6556,7 @@ libcall({libname}, {funcname}, {argument})
|
6556 | 6556 | libcallnr({libname}, {funcname}, {argument})
|
6557 | 6557 | Just like |libcall()|, but used for a function that returns an
|
6558 | 6558 | int instead of a string.
|
6559 |
| - {only in Win32 on some Unix versions, when the |+libcall| |
| 6559 | + {only in Win32 and some Unix versions, when the |+libcall| |
6560 | 6560 | feature is present}
|
6561 | 6561 | Examples: >
|
6562 | 6562 | :echo libcallnr("/usr/lib/libc.so", "getpid", "")
|
@@ -7350,14 +7350,16 @@ matchbufline({buf}, {pat}, {lnum}, {end}, [, {dict}])
|
7350 | 7350 | [{'lnum': 3, 'byteidx': 0, 'text': 'a'}]
|
7351 | 7351 | " Assuming line 4 in buffer 10 contains "tik tok"
|
7352 | 7352 | :echo matchbufline(10, '\<\k\+\>', 1, 4)
|
7353 |
| - [{'lnum': 4, 'byteidx': 0, 'text': 'tik'}, {'lnum': 4, 'byteidx': 4, 'text': 'tok'}] |
| 7353 | + [{'lnum': 4, 'byteidx': 0, 'text': 'tik'}, |
| 7354 | + {'lnum': 4, 'byteidx': 4, 'text': 'tok'}] |
7354 | 7355 | <
|
7355 | 7356 | If {submatch} is present and is v:true, then submatches like
|
7356 | 7357 | "\1", "\2", etc. are also returned. Example: >
|
7357 | 7358 | " Assuming line 2 in buffer 2 contains "acd"
|
7358 | 7359 | :echo matchbufline(2, '\(a\)\?\(b\)\?\(c\)\?\(.*\)', 2, 2
|
7359 | 7360 | \ {'submatches': v:true})
|
7360 |
| - [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}] |
| 7361 | + [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches': |
| 7362 | + ['a', '', 'c', 'd', '', '', '', '', '']}] |
7361 | 7363 | < The "submatches" List always contains 9 items. If a submatch
|
7362 | 7364 | is not found, then an empty string is returned for that
|
7363 | 7365 | submatch.
|
@@ -7494,7 +7496,8 @@ matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()*
|
7494 | 7496 | < results in [['testing'], [[0, 2, 6]], [99]] >
|
7495 | 7497 | :echo matchfuzzypos(['clay', 'lacy'], 'la')
|
7496 | 7498 | < results in [['lacy', 'clay'], [[0, 1], [1, 2]], [153, 133]] >
|
7497 |
| - :echo [{'text': 'hello', 'id' : 10}]->matchfuzzypos('ll', {'key' : 'text'}) |
| 7499 | + :echo [{'text': 'hello', 'id' : 10}] |
| 7500 | + \ ->matchfuzzypos('ll', {'key' : 'text'}) |
7498 | 7501 | < results in [[{'id': 10, 'text': 'hello'}], [[2, 3]], [127]]
|
7499 | 7502 |
|
7500 | 7503 | Return type: list<list<any>>
|
@@ -7538,15 +7541,18 @@ matchstrlist({list}, {pat} [, {dict}])
|
7538 | 7541 |
|
7539 | 7542 | Example: >
|
7540 | 7543 | :echo matchstrlist(['tik tok'], '\<\k\+\>')
|
7541 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'tik'}, {'idx': 0, 'byteidx': 4, 'text': 'tok'}] |
| 7544 | + [{'idx': 0, 'byteidx': 0, 'text': 'tik'}, |
| 7545 | + {'idx': 0, 'byteidx': 4, 'text': 'tok'}] |
7542 | 7546 | :echo matchstrlist(['a', 'b'], '\<\k\+\>')
|
7543 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'a'}, {'idx': 1, 'byteidx': 0, 'text': 'b'}] |
| 7547 | + [{'idx': 0, 'byteidx': 0, 'text': 'a'}, |
| 7548 | + {'idx': 1, 'byteidx': 0, 'text': 'b'}] |
7544 | 7549 | <
|
7545 | 7550 | If "submatches" is present and is v:true, then submatches like
|
7546 | 7551 | "\1", "\2", etc. are also returned. Example: >
|
7547 | 7552 | :echo matchstrlist(['acd'], '\(a\)\?\(b\)\?\(c\)\?\(.*\)',
|
7548 | 7553 | \ #{submatches: v:true})
|
7549 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}] |
| 7554 | + [{'idx': 0, 'byteidx': 0, 'text': 'acd', |
| 7555 | + 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}] |
7550 | 7556 | < The "submatches" List always contains 9 items. If a submatch
|
7551 | 7557 | is not found, then an empty string is returned for that
|
7552 | 7558 | submatch.
|
@@ -8956,8 +8962,8 @@ remote_send({server}, {string} [, {idvar}]) *remote_send()* *E241*
|
8956 | 8962 | Note: Any errors will be reported in the server and may mess
|
8957 | 8963 | up the display.
|
8958 | 8964 | Examples: >
|
8959 |
| - :echo remote_send("gvim", ":DropAndReply " .. file, "serverid") .. |
8960 |
| - \ remote_read(serverid) |
| 8965 | + :echo remote_send("gvim", ":DropAndReply " .. file, |
| 8966 | + \ "serverid") .. remote_read(serverid) |
8961 | 8967 |
|
8962 | 8968 | :autocmd NONE RemoteReply *
|
8963 | 8969 | \ echo remote_read(expand("<amatch>"))
|
@@ -13027,7 +13033,8 @@ python_dynamic Python 2.x interface is dynamically loaded. |has-python|
|
13027 | 13033 | python3 Python 3.x interface available. |has-python|
|
13028 | 13034 | python3_compiled Compiled with Python 3.x interface. |has-python|
|
13029 | 13035 | python3_dynamic Python 3.x interface is dynamically loaded. |has-python|
|
13030 |
| -python3_stable Python 3.x interface is using Python Stable ABI. |has-python| |
| 13036 | +python3_stable Python 3.x interface is using Python Stable ABI. |
| 13037 | + |has-python| |
13031 | 13038 | pythonx Python 2.x and/or 3.x interface available. |python_x|
|
13032 | 13039 | qnx QNX version of Vim.
|
13033 | 13040 | quickfix Compiled with |quickfix| support.
|
|
0 commit comments