++ed by:
KEEDI RORYRJB MHOWARD HERNAN

4 PAUSE users
6 non-PAUSE users.

Yanick Champoux
and 3 contributors

NAME

Vim::X::Range - A range of lines in a Vim buffer

VERSION

version 1.3.0

DESCRIPTION

Represents a range of lines in a buffer. Note that, just like for Vim::X::Line, the object stores the indexes of the range, so if the buffer after the object creation, it'll likely not operate on the expected lines. Caveat emptor and all that.

ATTRIBUTES

from

The first line of the range.

to

The last line of the range. If not given, defaults to the same line as 'from'.

FUNCTIONS

replace( @new_lines )

Replaces the lines in the range with the provided new lines. If the new number of lines differs from the old one, the to value of the object will be updated in consequence.

Returns itself.

as_string

Returns the range as a string.

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.