Unable to replace different matches with a single replace in Vim


Unable to replace different matches with a single replace in Vim



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?




vim and NERD Tree extension - adding a file

1:



Find out to which highlight-group a particular keyword/symbol belongs in vim
This should work:.
Changing drive letter in NERDtree
:%s/\(car\|beatles\)/mas/g 


How do I yank all matching lines into one buffer?


74 out of 100 based on 54 user ratings 854 reviews