NAME
Neovim::Ext::Buffer - Neovim Buffer class
VERSION
version 0.06
SYNPOSIS
use Neovim::Ext;
my $buffer = $nvim->current->buffer;
push @$buffer, 'line'; # add a new line to the buffer
@$buffer = (); # delete all buffer lines
# check if the buffer is valid
if (tied (@{$buffer})->valid)
{
...
}
DESCRIPTION
A remote Nvim buffer. A Neovim::Ext::Buffer
instance is a tied array reference.
METHODS
mark( $name )
Return the row and column for a named mark.
range( $start, $end )
Return a Neovim::Ext::Range
which represents part of the buffer.
name( [$name] )
Get or set buffer name.
number( )
Get the buffer number.
valid( )
Check if the buffer still exists.