Skip to main content
Module

x/denops_std/function/mod.ts>digraph_set

📚 Standard module for denops.vim
Go to Latest
function digraph_set
import { digraph_set } from "https://deno.land/x/denops_std@v4.1.3/function/mod.ts";

Add digraph {chars} to the list. {chars} must be a string with two characters. {digraph} is a string with one UTF-8 encoded character. Be careful, composing characters are NOT ignored. This function is similar to |:digraphs| command, but useful to add digraphs start with a white space. The function result is v:true if |digraph| is registered. If this fails an error message is given and v:false is returned. If you want to define multiple digraphs at once, you can use |digraph_setlist()|. Example: call digraph_set(' ', 'あ') Can be used as a |method|: GetString()->digraph_set('あ') 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
digraph: unknown

Returns

Promise<unknown>