Skip to main content
Module

x/denops_std/option/mod.ts>isprint

📚 Standard module for denops.vim
Go to Latest
variable isprint
import { isprint } from "https://deno.land/x/denops_std@v4.1.4/option/mod.ts";

The characters given by this option are displayed directly on the screen. It is also used for "\p" in a |pattern|. The characters from space (ASCII 32) to '~' (ASCII 126) are always displayed directly, even when they are not included in 'isprint' or excluded. See 'isfname' for a description of the format of this option.

Non-printable characters are displayed with two characters: 0 - 31 "@" - "_" 32 - 126 always single characters 127 "^?" 128 - 159 "@" - "_" 160 - 254 "| " - "|~" 255 "~?" When 'encoding' is a Unicode one, illegal bytes from 128 to 255 are displayed as , with the hexadecimal value of the byte. When 'display' contains "uhex" all unprintable characters are displayed as . The SpecialKey highlighting will be used for unprintable characters. |hl-SpecialKey|

Multi-byte characters 256 and above are always included, only the characters up to 255 are specified with this option. When a character is printable but it is not available in the current font, a replacement character will be shown. Unprintable and zero-width Unicode characters are displayed as . There is no option to specify these characters.

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<string>; setGlobal(denops: Denops, value: string): Promise<void>; resetGlobal(denops: Denops): Promise<void>; }