import { deletebufline } from "https://deno.land/x/denops_std@v7.0.0-pre0/function/buffer.ts";
Delete lines {first} to {last} (inclusive) from buffer {buf}. 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 {buf}, 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 {buf}.
Can also be used as a method
:
GetBuffer()->deletebufline(1)