I'm trying the following command in visual mode to attempt a global find/replace on a block of text
:'<,'>s/red/green/g
The text looks like this
red red red blue red red red blue
And the result
green red red blue red red red blue
Instead of what I am expecting with the g switch:
green green green blue green green green blue
Any idea what causes this behaviour? If it is default behaviour how do I make g really really global?
Thanks