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

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

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

Queues raw user-input. Unlike nvim_feedkeys(), this uses a low-level input buffer and the call is non-blocking (input is processed asynchronously by the eventloop).

On execution error: does not fail, but updates v:errmsg.

Note: keycodes like <CR> are translated, so "<" is special. To input a literal "<", send <LT>.

Note: For mouse events use nvim_input_mouse(). The pseudokey form "<LeftMouse><col,row>" is deprecated since api-level 6.

Attributes: api-fast

Parameters:

  • {keys} to be typed

Return: Number of bytes actually written (can be fewer than requested if the buffer becomes full).

Parameters

denops: Denops
keys: unknown

Returns

Promise<unknown>