|
1 | | -*builtin.txt* For Vim version 9.1. Last change: 2024 Sep 23 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2024 Oct 08 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -230,6 +230,8 @@ getcharmod() Number modifiers for the last typed character |
230 | 230 | getcharpos({expr}) List position of cursor, mark, etc. |
231 | 231 | getcharsearch() Dict last character search |
232 | 232 | getcharstr([{expr}]) String get one character from the user |
| 233 | +getcmdcomplpat() String return the completion pattern of the |
| 234 | + current command-line completion |
233 | 235 | getcmdcompltype() String return the type of the current |
234 | 236 | command-line completion |
235 | 237 | getcmdline() String return the current command-line input |
@@ -3973,14 +3975,24 @@ getcharstr([{expr}]) *getcharstr()* |
3973 | 3975 |
|
3974 | 3976 | Return type: |String| |
3975 | 3977 |
|
| 3978 | +getcmdcomplpat() *getcmdcomplpat()* |
| 3979 | + Return completion pattern of the current command-line. |
| 3980 | + Only works when the command line is being edited, thus |
| 3981 | + requires use of |c_CTRL-\_e| or |c_CTRL-R_=|. |
| 3982 | + Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|, |
| 3983 | + |getcmdprompt()|, |getcmdcompltype()| and |setcmdline()|. |
| 3984 | + Returns an empty string when completion is not defined. |
| 3985 | + |
| 3986 | + Return type: |String| |
| 3987 | + |
3976 | 3988 |
|
3977 | 3989 | getcmdcompltype() *getcmdcompltype()* |
3978 | 3990 | Return the type of the current command-line completion. |
3979 | 3991 | Only works when the command line is being edited, thus |
3980 | 3992 | requires use of |c_CTRL-\_e| or |c_CTRL-R_=|. |
3981 | 3993 | See |:command-completion| for the return string. |
3982 | 3994 | Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|, |
3983 | | - |getcmdprompt()| and |setcmdline()|. |
| 3995 | + |getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|. |
3984 | 3996 | Returns an empty string when completion is not defined. |
3985 | 3997 |
|
3986 | 3998 | Return type: |String| |
|
0 commit comments