Answers:
您所说的复合词实际上是一个WORD(反对一个词)。阅读:h word并:h WORD应有所帮助:
*word*
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line
is also considered to be a word.
*WORD*
A WORD consists of a sequence of non-blank characters, separated with white
space. An empty line is also considered to be a WORD.
您在这里寻找的是dW当您在I或diW在世界上任何地方时。
也许将来您还需要阅读:h 'iskeyword'。
in-this-sentence there are four"WORDs是的in-this-sentence,四个字分别是there,are和four"WORDs。例如,当您使用w和W或b和B动作时,很容易看到。请注意,空格可以是“常规”空格或制表符。
另一个更通用的解决方案是使用删除最多空白字符dt (在后面有一个空格t),这表示“删除为[字符]。这对于dt:类似的东西也经常有用。
dt: 办?
<code>dt </code>在末尾使用空格。
:h motion.txt和使用vimtutor,这将极大地帮助您了解Vim的基础知识
vimtutor听起来很有趣。我不确定它是否已安装在远程服务器上(看起来甚至没有man安装该实用程序)。但是,我将检查:如果它与vim软件包一起自动安装,那么我将很有可能会使用它。
如果您想继续使用dw等功能,并且还希望通过双击一个单词来使用它,则可以添加
set iskeyword+=-
到您的.vimrc,这会添加-为文字字符。
例:
双击ab-cd视觉突出显示中的任何字符ab-cd。
dW,但您的解决方案也很酷,因为我认为它也会影响视觉模式。我的意思是,通过修改iskeyword,然后双击,d我应该能够删除ab-cd。对?
v,而不是双击。对?
A WORD consists of a sequence of non-blank characters, separated with white space。Separated with white space表示单词被其他单词或带有空格的单词分隔,对吗?