我最近开始在VIM中挑战自我,慢慢地走不动。假设我有以下内容:
1 ewdawdawdeditor you can scroll the
1 page, move the cursor, delete lines, insert
2 characters, and more, while seeing the
3 results of your edits as you make them.
我的光标在1,1
上,在vfe
之后在1,10
上。
如何在不按hd
的情况下删除光标到行首的文本?
如果您的目标是简单地从行首开始选择,但不包括第一个“ e”,则可以使用vte
代替vfe
。然后您可以按d
进行删除。
或者,您可以删除而不用dte
进入可视模式。
据我所知,我认为没有一种方法可以删除可视模式选择中的所有内容,但最后一个字符除外。