Hello, I was wondering if anyone had an clever (or non-clever) ways of
deleting from the cursor to the next instance of a pattern. Perhaps
it's easier to illustrate by example. For instance, if I have the line
of text:
This is a line of text for an example for the vim.
If my cursor is at, say, t
Am 23.03.2009 16:03, mathneuro schrieb:
> Hello, I was wondering if anyone had an clever (or non-clever) ways of
> deleting from the cursor to the next instance of a pattern. Perhaps
> it's easier to illustrate by example. For instance, if I have the line
> of text:
>
> This is a line of text for
> This is a line of text for an example for the vim.
>
> If my cursor is at, say, the beginning and my task is to delete
> everything until the 'a' tag, I can use d11w or hold down 'x' or do a
> number of other things, but is there a way to tell vim, delete from
> here to the character '<'?
You
dt<
--Original Message--
From: mathneuro
Sender: vim_use@googlegroups.com
To: vim_use
ReplyTo: vim_use@googlegroups.com
Subject: Delete from cursor to next instance of a pattern
Sent: Mar 23, 2009 11:03
Hello, I was wondering if anyone had an clever (or non-clever) ways of
delet
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
--~--~-~--~~~---~--~~
You received this message from the "
On Mar 23, 10:12 am, Dennis Benzinger
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
search
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 "http://www.vim.org/ma
On Mar 23, 1:10 pm, "Derek Wyatt" wrote:
> 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 yo
Holy beans, you're right
Well, that's why I'm on the list... To save keystrokes :)
Thanks,
Derek
Entered using opposable digits...
-Original Message-
From: Ben Fritz
Date: Mon, 23 Mar 2009 14:03:54
To: vim_use
Subject: Re: Delete from cursor to next instance of a patt
Oh! Thank you all! I am so happy!
On Mar 23, 11:14 am, Tim Chase wrote:
> > This is a line of text for an example for the vim.
>
> > If my cursor is at, say, the beginning and my task is to delete
> > everything until the 'a' tag, I can use d11w or hold down 'x' or do a
> > number of other thing
10 matches
Mail list logo