@@ -213,8 +213,12 @@ getcharmod() Number modifiers for the last typed character
213
213
getcharpos({expr} ) List position of cursor, mark, etc.
214
214
getcharsearch() Dict last character search
215
215
getcharstr([expr]) String get one character from the user
216
+ getcmdcompltype() String return the type of the current
217
+ command-line completion
216
218
getcmdline() String return the current command-line
217
219
getcmdpos() Number return cursor position in command-line
220
+ getcmdscreenpos() Number return cursor screen position in
221
+ command-line
218
222
getcmdtype() String return current command-line type
219
223
getcmdwintype() String return current command-line window type
220
224
getcompletion({pat} , {type} [, {filtered} ])
@@ -3208,6 +3212,13 @@ getcharstr([expr]) *getcharstr()*
3208
3212
Otherwise this works like | getchar() | , except that a number
3209
3213
result is converted to a string.
3210
3214
3215
+ getcmdcompltype() *getcmdcompltype()*
3216
+ Return the type of the current command-line completion.
3217
+ Only works when the command line is being edited, thus
3218
+ requires use of | c_CTRL-\_e | or | c_CTRL-R_= | .
3219
+ See | command-completion | for the return string.
3220
+ Also see | getcmdtype() | , | setcmdpos() | and | getcmdline() | .
3221
+ Returns an empty string when completion is not defined.
3211
3222
3212
3223
getcmdline() *getcmdline()*
3213
3224
Return the current command-line. Only works when the command
@@ -3227,6 +3238,15 @@ getcmdpos() *getcmdpos()*
3227
3238
Returns 0 otherwise.
3228
3239
Also see | getcmdtype() | , | setcmdpos() | and | getcmdline() | .
3229
3240
3241
+ getcmdscreenpos() *getcmdscreenpos()*
3242
+ Return the screen position of the cursor in the command line
3243
+ as a byte count. The first column is 1.
3244
+ Instead of | getcmdpos() | , it adds the prompt position.
3245
+ Only works when editing the command line, thus requires use of
3246
+ | c_CTRL-\_e | or | c_CTRL-R_= | or an expression mapping.
3247
+ Returns 0 otherwise.
3248
+ Also see | getcmdpos() | , | setcmdpos() | .
3249
+
3230
3250
getcmdtype() *getcmdtype()*
3231
3251
Return the current command-line type. Possible return values
3232
3252
are:
0 commit comments