import { nvim_feedkeys } from "https://deno.land/x/denops_std@v3.6.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.
If you need to input sequences like use
|nvim_replace_termcodes| to replace the termcodes and then
pass the resulting string to nvim_feedkeys. You'll also want
to enable escape_csi.
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