Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using dt and df commands with * in vim

1 view
Skip to first unread message

George

unread,
Dec 8, 2009, 11:38:57 AM12/8/09
to
Dear All,

I have a line of text that looks like this:

/* This is a test */

I have the cursor at the beginning of the word This and want to delete
up to (including) the last * on the line. If I type df* nothing will
happen, presumably because * is recognised as a special character
(search forward for the word under cursor) in vim.

Is there a way to overwrite this behavior and to get vim to treat * as a
character literal?

Regards,
George

Chris Haffenstedt

unread,
Dec 8, 2009, 2:27:05 PM12/8/09
to
George schrieb:

> I have a line of text that looks like this:
>
> /* This is a test */
>
> I have the cursor at the beginning of the word This and want to delete
> up to (including) the last * on the line. If I type df* nothing will
> happen, presumably because * is recognised as a special character
> (search forward for the word under cursor) in vim.

Works perfectly here. (Vim 7.2 on Ubuntu 9.04)

0 new messages