VIM 删除直到单词/字符

Seb*_*ten 8 vim

在 VIM 中,给出以下文本:

“HelloWorld:这是一个测试

如果我的光标/插入符号就在 : 之后,是否有命令让我删除直到“?

所以它看起来像

“你好,世界:”

小智 12

是的,使用“直到”动作。

dt"
Run Code Online (Sandbox Code Playgroud)

手段ð elete未牛逼IL一,也有‘查找’的运动,它删除了,以和包括人物。无论是在反向这些工作,如果你利用它们。

来自:h t

                            *t*
t{char}         Till before [count]'th occurrence of {char} to the
            right.  The cursor is placed on the character left of
            {char} |inclusive|.
            {char} can be entered like with the |f| command.
Run Code Online (Sandbox Code Playgroud)