是否有可能做一个搜索,并在vim,保留搜索项的情况下更换?这是我错过的intelliJ中的一个有用功能。
举例来说,像这样:
:s/[uU]ser/[pP]erson/ (obviously, this doesn't work)
这样的:
user->person
User->Person
与多个字符又如保存:
:s/[mM]y[uU]ser/[tT]his[pP]erson/g
这样的:
myuser->thisperson
myUser->thisPerson
MyUser->ThisPerson
SmartCase看起来像我想要的 – 2009-12-16 17:51:40
这个答案帮了我加倍。我使用keepcase进行保留大小写的搜索。我回到你的答案,找出如何进行搜索,并用不同的多元化拼写(group/groups => body/bodies)替换。 – 2012-01-27 22:32:04