vim._core.ex_cmd
Methods12
function M.filter(filter: vim.api.keyset.cmd_mods_filter, msg: string) -> boolean
Apply the :filter[!] /pattern/ modifier to a single message. See also message_filtered().
Parameters
filtervim.api.keyset.cmd_mods_filter":filter" mod.
msgstringMessage to test.
Returns
- boolean
True if
msgshould be skipped (not displayed).
function M.ex_lsp(eap: vim._core.ExCmdArgs) -> nil
Implements command: :lsp {subcmd} {name}?.
function M.lsp_complete(_, line: string) -> list string[]
Completion logic for :lsp command
Parameters
_linestringcontent of the current command line
Returns
liststring[]of completions
function M.ex_log(eap: vim._core.ExCmdArgs) -> nil
Implements command: :log {file}.
function M.log_complete() -> completions string[]
Completion logic for :log command
function M.ex_terminal(eap: vim._core.ExCmdArgs, shell_argv: string[] | nil) -> nil
:terminal [cmd]
Parameters
shell_argvstring[] | nilTokenized 'shell' from C (shellbuildargv), for the no-cmd case.
Returns
- nil
function M.ex_uptime() -> nil
function M.ex_oldfiles(eap: vim._core.ExCmdArgs) -> nil
:oldfiles and :browse oldfiles. Lists v:oldfiles (plain :oldfiles) or shows (async) vim.ui.select() picker (:browse oldfiles) and edits the chosen file.
function M.ex_packupdate(eap: vim._core.ExCmdArgs) -> nil
function M.packupdate_complete(pattern: string) -> completions string[]
function M.ex_packdel(eap: vim._core.ExCmdArgs) -> nil
function M.packdel_complete(pattern: string, line: string) -> completions string[]
Parameters
patternstringlinestringcontent of the current command line
Returns
completionsstring[]