vim._core.ui2.cmdline
Methods7
function cmdline.cmdline_show(content: CmdContent, pos: integer, firstc: string, prompt: string | false, indent: integer, level: integer, hl_id: integer) -> nil
Set the cmdline buffer text and cursor position.
function cmdline.cmdline_special_char(c: string, shift: boolean) -> nil
Insert special character at cursor position.
function cmdline.cmdline_pos(pos: integer) -> nil
Set the cmdline cursor position.
function cmdline.cmdline_hide(level: integer, abort: boolean) -> nil
Leaving the cmdline, restore 'cmdheight' and 'ruler'.
function cmdline.cmdline_block_show(lines: CmdContent[]) -> nil
Set multi-line cmdline buffer text.
function cmdline.cmdline_block_append(line: CmdContent) -> nil
Append line to a multiline cmdline.
function cmdline.cmdline_block_hide() -> nil
Clear cmdline buffer and leave the cmdline.
Fields8
cmdline.indent: integer = 0
Current indent for block event.
cmdline.prompt: false
Whether a prompt is active; route to dialog regardless of ui.cfg.msg.target.
cmdline.dialog: false
Whether a dialog window was opened.
cmdline.srow: integer = 0
Buffer row at which the current cmdline starts; > 0 in block mode.
cmdline.erow: integer = 0
Buffer row at which the current cmdline ends; messages appended here in block mode.
cmdline.level: integer = 0
Current cmdline level; 0 when inactive.
cmdline.wmnumode: integer = 0
wildmenumode() when not using the pum, dialog position adjusted when toggled.
cmdline.expand: integer = 0
Non-zero for entered expanded cmdline, incremented for each message emitted as a result of entered command to move and open messages in the pager.