Vim::X::Buffer - A buffer in Vim
version 1.3.0
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.
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.
Sets the content of the line.
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.
Returns the Vim::X::Range object for the given range of lines.
Yanick Champoux <yanick@cpan.org>
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.
To install Vim::X, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Vim::X
CPAN shell
perl -MCPAN -e shell install Vim::X
For more information on module installation, please visit the detailed CPAN module installation guide.