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?
This should work:
:%s/\(car\|beatles\)/mas/g
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With