import { nvim_put } from "https://deno.land/x/denops_std@v6.5.1/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, seesetreg()
- {after} If true insert after cursor (like
p
), or before (likeP
). - {follow} If true place cursor at end of inserted text.