import { nvim_put } from "https://deno.land/x/denops_std@v5.0.2/function/nvim/mod.ts";
Puts text at cursor, in any mode.
Compare :put
and p
which are always linewise.
Attributes:
not allowed when textlock
is active
Parameters:
{lines} readfile()
-style list of lines. channel-lines
{type} Edit behavior: any getregtype()
result, or:
- "b" blockwise-visual
mode (may include width, e.g. "b3")
- "c" charwise
mode
- "l" linewise
mode
- "" guess by contents, see setreg()
{after} If true insert after cursor (like p
), or before (like
P
).
{follow} If true place cursor at end of inserted text.