Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v4.1.4/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_ks=false) 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:false) Parameters: ~ {keys} to be typed {mode} behavior flags, see |feedkeys()| {escape_ks} If true, escape K_SPECIAL bytes in keys This should be false if you already used |nvim_replace_termcodes()|, and true otherwise. See also: ~ feedkeys() vim_strsave_escape_ks

Parameters

denops: Denops
keys: unknown
mode: unknown
escape_ks: unknown

Returns

Promise<unknown>