On Mar 23, 10:12 am, Dennis Benzinger <[email protected]>
wrote:
> But this only works for single characters. If you want to delete up to a
> specific string you can use v to enter visual mode, search the string
> with / and then use d.
>
Actually, there is no reason to enter visual mode. Full-blown regex
searches with / or ? are treated just like any other cursor motion by
the "d" operator.
t or f are probably sufficient in this case, but they limit to matches
within the same line as well as limiting to a single character. A /
search has none of these limitations, but beware of wrapping beyond
the end of the file! If you run into this problem, see :help
'wrapscan'.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---