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