import * as denopsStd from "https://deno.land/x/denops_std@v5.0.2/function/buffer.ts";
Functions
Like | |
Add a buffer to the buffer list with name {name} (must be a String). If a buffer for file {name} already exists, return that buffer number. Otherwise return the buffer number of the newly created buffer. When {name} is an empty string then a new buffer is always created. The buffer will not have 'buflisted' set and not be loaded yet. To add some text to the buffer use this: | |
The result is a Number, which is | |
The result is a Number, which is | |
Ensure the buffer {buf} is loaded. When the buffer name
refers to an existing file then the file is read. Otherwise
the buffer will be empty. If the buffer was already loaded
then there is no change. If the buffer is not related to a
file the no file is read (e.g., when 'buftype' is "nofile").
If there is an existing swap file for the file of the buffer,
there will be no dialog, the buffer will be loaded anyway.
The {buf} argument is used like with | |
The result is a Number, which is | |
The result is the name of a buffer. Mostly as it is displayed
by the | |
The result is the number of a buffer, as it is displayed by
the | |
The result is a Number, which is the | |
Like | |
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. | |
Get information about buffers as a List of Dictionaries. | |
Return a | |
The result is the value of option or local buffer variable
{varname} in buffer {buf}. Note that the name without "b:"
must be used.
The {varname} argument is a string.
When {varname} is empty returns a | |
Returns the | |
Without the {buf} argument returns a | |
Set line {lnum} to {text} in buffer {buf}. This works like
| |
Set option or local variable {varname} in buffer {buf} to
{val}.
This also works for a global or local window option, but it
doesn't work for a global or local window variable.
For a local window option the global value is unchanged.
For the use of {buf}, see | |
The result is the swap file path of the buffer {expr}.
For the use of {buf}, see |
Interfaces
Only the buffers matching the specified criteria are returned. |
Type Aliases
If the {buf} argument is a number, buffer numbers are used. Number zero is the alternate buffer for the current window. | |
For {lnum} and {end} "$" can be used for the last line of the buffer. Otherwise a number must be used. | |
If {buf} is omitted the current buffer is used.
If {buf} is a Number, that buffer number's name is given.
Number zero is the alternate buffer for the current window.
If {buf} is a String, it is used as a |