> On Sep 12, 3:40 pm, Ben Fritz<fritzophrenic@gmail.com> wrote:
>>
>> Yikes! Text-objects are way more useful without using visual mode,
>
> Ok , I'm convinced text objects are wonderful. Is there a way to get
> the line range covered by a text object to be used in user defined
> commands ? I can see that you can yank the object itself and use the
> yanked text in your command but say that for whatever reason you
> want the line range or even better the byte range which the object
> occupies. Is there a way to get that ?
>
Getting the line range or the byte range covered by an object into
user-defined commands is possible: it's what "operator-pending mappings"
are all about. But I don't pretend that I really understand it.
Best regards,
Tony.
--
It's easier to get forgiveness for being wrong than forgiveness for
being right.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment