Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/nvim/mod.ts>nvim_feedkeys

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

Sends input-keys to Nvim, subject to various quirks controlled by mode flags. This is a blocking call, unlike |nvim_input()|. On execution error: does not fail, but updates v:errmsg. To input sequences like use |nvim_replace_termcodes()| (typically with escape_csi=true) to replace |keycodes|, then pass the result to nvim_feedkeys(). Example: :let key = nvim_replace_termcodes("", v:true, v:false, v:true) :call nvim_feedkeys(key, 'n', v:true) Parameters: ~ {keys} to be typed {mode} behavior flags, see |feedkeys()| {escape_csi} If true, escape K_SPECIAL/CSI bytes in keys See also: ~ feedkeys() vim_strsave_escape_csi

Parameters

denops: Denops
keys: unknown
mode: unknown
escape_csi: unknown

Returns

Promise<unknown>