On Sep 1, 6:56 pm, Sartak <[EMAIL PROTECTED]> wrote:
> Hi gang,
>
> I really love text objects. I wish there were more of them. In
> particular, one for /-delimited strings. These come up a lot in Perl:
>
> if ($foo =~ /blah blah blah/)
> ($hobbit = $lotr) =~ s/Bilbo/Frodo/g;
> for (qw/foo bar baz/)
> print q/ both ' kinds of " /;
>
> So I wrote a new text object to match these kinds of strings. It was
> literally a one line change. :)
>
> I think I added all the necessary documentation, let me know if I
> missed a spot. In the todo file there is an item for a different kind
> of / text object, one that has to do with searches. I changed that
> from 'a/' and 'i/' to 'an' and 'in'.
>
> Shawn M Moore
>
> slash-object.diff
> 3KDownload
My opinion : Why hardcode something, which is easily done with a
mapping ?
Also, '/' is just one of many possible perl delimiter.
-ap
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---