Skip to main content
Module

x/denops_std/function/nvim/mod.ts>nvim_put

📚 Standard module for denops.vim
Go to Latest
function nvim_put
import { nvim_put } from "https://deno.land/x/denops_std@v6.4.0/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.

Parameters

denops: Denops
lines: unknown
type: unknown
after: unknown
follow: unknown

Returns

Promise<unknown>