Skip to main content
Module

x/ddc_vim/deps.ts>fn.deletebufline

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

Delete lines {first} to {last} (inclusive) from buffer {expr}. If {last} is omitted then delete line {first} only. On success 0 is returned, on failure 1 is returned. This function works only for loaded buffers. First call |bufload()| if needed. For the use of {expr}, see |bufname()| above. {first} and {last} are used like with |getline()|. Note that when using |line()| this refers to the current buffer. Use "$" to refer to the last line in buffer {expr}. Can also be used as a |method|: GetBuffer()->deletebufline(1)

Parameters

denops: Denops
expr: unknown
first: unknown
optional
last: unknown

Returns

Promise<unknown>