I was wondering how I would search and replace all /'s with -'s in vi.
%s///-/g doesn't work obviously.
|
|
|
Try escaping your /s, with a \.
|
||||
|
|
|
You can use any delimiter you wish, not just
This way, |
||||
|
|
|
replacing separator is not always /. Try
in the text of "http://hoge/hoge" |
|||
|
|