1

non-greedy replacing in vim

view story
linux-howto

http://www.unix.com – I have the following lines: Code: {color:#000000}blabla{color} {color:#000000}moreblabla{color} {color:#000000}even more blabla{color} I tried the following line in vim to get rid of all the {} tags: Code: :%s/{.*\{-}}//g But vim complains: "invalid command" What am I doing wrong? (HowTos)