vim._core.cmdwin
Methods3
function M.open(type: nil | string, init_line: nil | string, init_col: nil | integer) -> nil
Open the command-line window.
Parameters
typenil | string':', '/', '?'. Default ':'.
init_linenil | stringPre-fill the last line (the "live" cmdline).
init_colnil | integer1-based cursor column in the last line.
Returns
- nil
function M.confirm() -> nil
Confirm and execute the current line as a cmdline.
function M.cancel() -> nil
Cancel: close the cmdwin and re-enter cmdline mode with the line pre-filled (no execute).