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.
我尝试了以下代码不成功
:%s/{car,beatles}/mas/g
如何用一个命令在 Vim 中用 mas替换car和beatles ?
这应该有效:
:%s/\(car\|beatles\)/mas/g