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.keytrans

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

Turn the internal byte representation of keys into a form that can be used for :map. E.g.

:let xx = "\<C-Home>"
:echo keytrans(xx)

    `<C-Home>`

Can also be used as a method:

"\<C-Home>"->keytrans()

Parameters

denops: Denops
string: unknown

Returns

Promise<string>