Skip to main content
Module

x/denops_std/function/buffer.ts>setbufline

📚 Standard module for denops.vim
Go to Latest
function setbufline
import { setbufline } from "https://deno.land/x/denops_std@v3.6.0/function/buffer.ts";

Set line {lnum} to {text} in buffer {expr}. To insert lines use |append()|.

For the use of {expr}, see |bufname()| above.

{lnum} is used like with |setline()|. This works like |setline()| for the specified buffer. On success 0 is returned, on failure 1 is returned.

If {expr} is not a valid buffer or {lnum} is not valid, an error message is given.

Parameters

denops: Denops
expr: string | number
lnum: string | number
text: string | string[]

Returns

Promise<boolean>