Skip to main content
Module

x/ddc_vim/deps.ts>fn.expandcmd

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.expandcmd
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { expandcmd } = fn;

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>