Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/nvim/mod.ts>nvim_command

📚 Standard module for denops.vim
Go to Latest
function nvim_command
import { nvim_command } from "https://deno.land/x/denops_std@v4.1.4/function/nvim/mod.ts";

Executes an Ex command. On execution error: fails with VimL error, updates v:errmsg. Prefer using |nvim_cmd()| or |nvim_exec()| over this. To evaluate multiple lines of Vim script or an Ex command directly, use |nvim_exec()|. To construct an Ex command using a structured format and then execute it, use |nvim_cmd()|. To modify an Ex command before evaluating it, use |nvim_parse_cmd()| in conjunction with |nvim_cmd()|. Parameters: ~ {command} Ex command string

Parameters

denops: Denops
command: unknown

Returns

Promise<unknown>