Skip to main content
Module

x/ddu_vim/deps.ts>fn.expandcmd

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.expandcmd
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { expandcmd } = fn;

Expand special items in String {string} like what is done for an Ex command such as :edit. This expands special keywords, like with |expand()|, and environment variables, anywhere in {string}. "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
string: unknown

Returns

Promise<unknown>