Skip to main content
Module

x/denops_std/function/mod.ts>setenv

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

Set environment variable {name} to {val}. When {val} is |v:null| the environment variable is deleted. See also |expr-env|. Can also be used as a |method|, the base is passed as the second argument: GetPath()->setenv('PATH')

Parameters

denops: Denops
name: unknown
val: unknown

Returns

Promise<unknown>