Skip to main content
Module

x/ddc_vim/deps.ts>fn.setbufline

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.setbufline
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { setbufline } = fn;

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>