a lost vi command
Vu Pham
vu at sivell.com
Wed Aug 18 11:22:42 PDT 2010
On 08/18/2010 11:59 AM, Dog Walker wrote:
> On Wed, Aug 18, 2010 at 8:33 AM, Vu Pham<vu at sivell.com> wrote:
>>
>> I thought a friend of mine told me how to do this in VI but now I cannot remember how to do it.
>>
>> I have the below sentence:
>>
>> this is an example blah1 blah2 blah3.
>>
>> The cursor is currently at the letter 'e' of the word example. I want to delete the text "example blah1 blah2". IIRC, I was told to use 2 with some command ( or some command with 2 ) but I cannot remember what it is.
>>
>> Could you please remind me ?
>>
>
> df2
>
> d for delete
> f for find
> 2 argument to f
>
> :help d
> --
> I have seen the future and I'm not in it!
Thanks. I missed this part in :help motion.txt. I should have read it
more carefully.
f{char} To [count]'th occurrence of {char} to the right.
The
cursor is placed on {char} |inclusive|.
{char} can be entered as a digraph |digraph-arg|.
When 'encoding' is set to Unicode, composing
characters may be used, see |utf-8-char-arg|.
|:lmap| mappings apply to {char}. The CTRL-^
command
in Insert mode can be used to switch this on/off
|i_CTRL-^|.
Vu
More information about the Linux-users
mailing list