Let's say I want to change All occurrences of 'foo' to 'bar' on a line. I'd do this with
:s/foo/bar/g
For some reason it only substitutes the first occurrence of 'foo'. Why could be causing this?
Let's say I want to change All occurrences of 'foo' to 'bar' on a line. I'd do this with
:s/foo/bar/g
For some reason it only substitutes the first occurrence of 'foo'. Why could be causing this?