Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/denops_std/function/vim/mod.ts>digraph_get

πŸ“š Standard module for denops.vim
Go to Latest
function digraph_get
import { digraph_get } from "https://deno.land/x/denops_std@v3.9.0/function/vim/mod.ts";

Return the digraph of {chars}. This should be a string with exactly two characters. If {chars} are not just two characters, or the digraph of {chars} does not exist, an error is given and an empty string is returned. The character will be converted from Unicode to 'encoding' when needed. This does require the conversion to be available, it might fail. Also see |digraph_getlist()|. Examples: " Get a built-in digraph :echo digraph_get('00') " Returns '∞' " Get a user-defined digraph :call digraph_set('aa', 'あ') :echo digraph_get('aa') " Returns 'あ' Can also be used as a |method|: GetChars()->digraph_get() This function works only when compiled with the |+digraphs| feature. If this feature is disabled, this function will display an error message.

Parameters

denops: Denops
chars: unknown

Returns

Promise<unknown>