In Vim, I'm trying to run a substitution on this text:
lorem ipsum -- dolor sit
...to get it to look like this:
lorem ipsum—dolor sit
I'm trying to do :%s/ -- /—/g, but it leaves me with this:
lorem ipsum -- —dolor sit
How should I adjust my substitution syntax?
:%s/ -- /\—/g– Joseph Mornin Jan 17 '12 at 16:23