Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

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

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

Executes Vimscript (multiline block of Ex commands), like anonymous |:source|. Unlike |nvim_command()| this function supports heredocs, script-scope (s:), etc. On execution error: fails with VimL error, updates v:errmsg. Parameters: ~ {src} Vimscript code {output} Capture and return all (non-error, non-shell |:!|) output Return: ~ Output (non-error, non-shell |:!|) if output is true, else empty string. See also: ~ |execute()| |nvim_command()| |nvim_cmd()|

Parameters

denops: Denops
src: unknown
output: unknown

Returns

Promise<unknown>