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

x/denops_std/function/vim/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@v3.9.0/function/vim/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>