Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.escape

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

Escape the characters in {chars} that occur in {string} with a backslash. Example: :echo escape('c:\program files\vim', ' ') results in: c:\program\ files\vim Also see |shellescape()| and |fnameescape()|. Can also be used as a |method|: GetText()->escape(' ')

Parameters

denops: Denops
string: unknown
chars: unknown

Returns

Promise<unknown>