Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在我的代码中调用一个对象的方法,比如
if abc.xyz then foo
我的光标位于“abc”中的“c”上,我想将 abc.xyz 更改为其他内容。如果我输入ciw,我将只替换“abc”。我可以使用什么来代替iw它选择整个“abc.xyz”?
ciw
iw
用于W仅使用空格字符分隔单词,它将选择整个字符串:
W
ciW
包括.在iskeyword 选项中:
.
iskeyword
set iskeyword=@,48-57,_,192-255,.