nvim_runtime_lua

vim._core.exmode

Methods3

function M.run() -> nil

Non-interactive "script mode" ("nvim -es", fka "Ex-mode", but POSIX behavior was dropped): Executes stdin as Ex commands, until EOF.

Stdin is not consumed as typeahead: fd 0 is read directly (io.lines()), so :lua script lines can also read stdin as data via io.read().

function M._statuscolumn() -> " "

Ex-mode 'statuscolumn': ":", or blank for continuation lines (:func body, :append text, …).

function M.open() -> nil

Interactive Ex-mode: keep-open cmdwin REPL. <CR> executes the current line against the caller window and keeps the cmdwin open; command output is presented as comment ('"') lines. Multiline commands (:append, etc.) are collected until the block is complete.