Skip to main content
Module

x/dpp_vim/deps.ts>fn.strtrans

Dark powered plugin manager for Vim/neovim
Latest
function fn.strtrans
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { strtrans } = fn;

The result is a String, which is {string} with all unprintable characters translated into printable characters 'isprint'. Like they are shown in a window. Example:

echo strtrans(@a)

This displays a newline in register a as "^@" instead of starting a new line.

Returns an empty string on error.

Can also be used as a method:

GetString()->strtrans()

Parameters

denops: Denops
string: unknown

Returns

Promise<string>