|
1 |
| -*builtin.txt* For Vim version 9.1. Last change: 2025 Jun 28 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 05 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -249,6 +249,8 @@ getcmdtype() String return current command-line type
|
249 | 249 | getcmdwintype() String return current command-line window type
|
250 | 250 | getcompletion({pat}, {type} [, {filtered}])
|
251 | 251 | List list of cmdline completion matches
|
| 252 | +getcompletiontype({pat}) String return the type of the command-line |
| 253 | + completion using {pat} |
252 | 254 | getcurpos([{winnr}]) List position of the cursor
|
253 | 255 | getcursorcharpos([{winnr}]) List character position of the cursor
|
254 | 256 | getcwd([{winnr} [, {tabnr}]]) String get the current working directory
|
@@ -4210,6 +4212,9 @@ getcmdcompltype() *getcmdcompltype()*
|
4210 | 4212 | |getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
|
4211 | 4213 | Returns an empty string when completion is not defined.
|
4212 | 4214 |
|
| 4215 | + To get the type of the command-line completion for the |
| 4216 | + specified string, use |getcompletiontype()|. |
| 4217 | + |
4213 | 4218 | Return type: |String|
|
4214 | 4219 |
|
4215 | 4220 |
|
@@ -4368,6 +4373,15 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
4368 | 4373 | <
|
4369 | 4374 | Return type: list<string>
|
4370 | 4375 |
|
| 4376 | +getcompletiontype({pat}) *getcompletiontype()* |
| 4377 | + Return the type of the command-line completion using {pat}. |
| 4378 | + When no corresponding completion type is found, an empty |
| 4379 | + string is returned. |
| 4380 | + To get the current command-line completion type, use |
| 4381 | + |getcmdcompltype()|. |
| 4382 | + |
| 4383 | + Return type: |String| |
| 4384 | + |
4371 | 4385 | *getcurpos()*
|
4372 | 4386 | getcurpos([{winid}])
|
4373 | 4387 | Get the position of the cursor. This is like getpos('.'), but
|
|
0 commit comments