tags:

views:

145

answers:

1

I tried the following code unsuccessfully

:%s/{car,beatles}/mas/g

How can I replace car and beatles with mas in Vim with a single command?

+9  A: 

This should work:

:%s/\(car\|beatles\)/mas/g
sth