Skip to main content
Module

x/denops_std/function/mod.ts>exepath

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

If {expr} is an executable and is either an absolute path, a relative path or found in $PATH, return the full path. Note that the current directory is used when {expr} starts with "./", which may be a problem for Vim: echo exepath(v:progpath) If {expr} cannot be found in $PATH or is not executable then an empty string is returned. Can also be used as a |method|: GetCommand()->exepath()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>