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

x/denops_std/function/nvim/mod.ts>nvim_replace_termcodes

📚 Standard module for denops.vim
Go to Latest
function nvim_replace_termcodes
import { nvim_replace_termcodes } from "https://deno.land/x/denops_std@v5.1.0/function/nvim/mod.ts";

Replaces terminal codes and keycodes (<CR>, <Esc>, ...) in a string with the internal representation.

Parameters: {str} String to be converted. {from_part} Legacy Vim parameter. Usually true. {do_lt} Also translate <lt>. Ignored if special is false. {special} Replace keycodes, e.g. <CR> becomes a "\r" char.

See also: replace_termcodes cpoptions

Parameters

denops: Denops
str: unknown
from_part: unknown
do_lt: unknown
special: unknown

Returns

Promise<unknown>