Yup, the / does that and people have been suggesting that you can use it when
you want more than one character in the search but due to what you've pointed
out, you really need to add a zero width lookahead in order to achieve what 't'
gets you.
So if you wanted to match "<a href=" instead of "<a name=" for example then
you'd need
d/\ze<a href=
Which is a bit of a pain but solves the problem of deleting what you matched
on. And of course it has the wrapscan issue as someone else noted.
Regs,
D
------Original Message------
From: Dave Land
Sender: [email protected]
To: [email protected]
ReplyTo: [email protected]
Subject: Re: Delete from cursor to next instance of a pattern
Sent: Mar 23, 2009 13:40
On Mar 23, 2009, at 8:07 AM, Derek Wyatt wrote:
>
> dt<
Thanks for this: I've always used
d/<
which works like a charm, but with the unintended side effect of
changing the saved search string.
Dave
Entered using opposable digits...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---