- COPYRIGHT AND LICENSE
Vim::X::Buffer - A buffer in Vim
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.
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).
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.
Returns the number of lines in the buffer.
Yanick Champoux <email@example.com>
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.