Skip to main content
Module

x/ddc_vim/deps.ts>fn.appendbufline

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

Like |append()| but append the text in buffer {expr}. This function works only for loaded buffers. First call |bufload()| if needed. For the use of {expr}, see |bufname()|. {lnum} is used like with |append()|. Note that using |line()| would use the current buffer, not the one appending to. Use "$" to append at the end of the 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. Example: :let failed = appendbufline(13, 0, "# THE START") Can also be used as a |method| after a List: mylist->appendbufline(buf, lnum)

Parameters

denops: Denops
expr: unknown
lnum: unknown
text: unknown

Returns

Promise<unknown>