Skip to main content
Module

x/denops_std/function/mod.ts>expandcmd

📚 Standard module for denops.vim
Go to Latest
function expandcmd
import { expandcmd } from "https://deno.land/x/denops_std@v3.6.0/function/mod.ts";

Expand special items in {expr} like what is done for an Ex command such as :edit. This expands special keywords, like with |expand()|, and environment variables, anywhere in {expr}. "user" and "/path" are only expanded at the start. Returns the expanded string. Example: :echo expandcmd('make %<.o') Can also be used as a |method|: GetCommand()->expandcmd()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>