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

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Attachment: slash-object.diff
Description: Binary data

Raspunde prin e-mail lui