NAME
Vim::X::Buffer - A buffer in Vim
VERSION
version 1.0.1
FUNCTIONS
lines_content( @indexes )
Returns the content of the lines given by @indexes.
If invoked in scalar context, the lines will be joined together with carriage returns.
append($index, @lines)
Appends the @lines after the given $index.
If the lines contain carriage returns, they will be properly splitted.
delete( @indexes )
Deletes the provided lines.
The lines are automatically filtered for duplicates and deleted in reverse order, so you can safely do
vim_buffer->delete( 1..5, 5..6 );
and things will Just Work(tm).
line($index)
Returns the line as a Vim::X::Line object.
set_line( $index, $content )
Sets the content of the line.
lines( @indexes )
Returns the lines given as Vim::X::Line objects. If no indexes are provided, returns all the lines of the buffer.
size()
Returns the number of lines in the buffer.
range( $from, $to )
Returns the Vim::X::Range object for the given range of lines.
AUTHOR
Yanick Champoux <yanick@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.