@@ -213,8 +213,12 @@ getcharmod() Number modifiers for the last typed character
213213getcharpos({expr} ) List position of cursor, mark, etc.
214214getcharsearch() Dict last character search
215215getcharstr([expr]) String get one character from the user
216+ getcmdcompltype() String return the type of the current
217+ command-line completion
216218getcmdline() String return the current command-line
217219getcmdpos() Number return cursor position in command-line
220+ getcmdscreenpos() Number return cursor screen position in
221+ command-line
218222getcmdtype() String return current command-line type
219223getcmdwintype() String return current command-line window type
220224getcompletion({pat} , {type} [, {filtered} ])
@@ -3208,6 +3212,13 @@ getcharstr([expr]) *getcharstr()*
32083212 Otherwise this works like | getchar() | , except that a number
32093213 result is converted to a string.
32103214
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.
32113222
32123223getcmdline() *getcmdline()*
32133224 Return the current command-line. Only works when the command
@@ -3227,6 +3238,15 @@ getcmdpos() *getcmdpos()*
32273238 Returns 0 otherwise.
32283239 Also see | getcmdtype() | , | setcmdpos() | and | getcmdline() | .
32293240
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+
32303250getcmdtype() *getcmdtype()*
32313251 Return the current command-line type. Possible return values
32323252 are:
0 commit comments