Nikolaos A. Patsopoulos wrote:
Another replacement question:how can I replace all occurrence of a pattern except a given one, e.g. the first or third?the code for all occurrences I use is: :%s/<a.\{-}>//g Thanks in advance,
I see that others have given the answer to the specific question you asked, so I won't repeat that.
However, a related capability is to use the "c" flag (for "confirm"): :%s/<a.\{-}>//gc Regards, Chip Campbell