I have a string with a ~ in it and using the expression
Example:
hi~how~are~you
:%s/~/ /g
This doesn't seem to work any ideas?
The symbol ~
matches the previous substitute string (see :help /~
), so you need to prefix it with a backslash:
:%s/\~/ /g
You just need to escape it with a backslash:
:%s/\~/ /g
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With