Home » Questions » Computers [ Ask a new question ]

Search and replace /'s in VI

Search and replace /'s in VI

I was wondering how I would search and replace all /'s with -'s in vi.

Asked by: Guest | Views: 292
Total answers/comments: 2
Guest [Entry]

"Try escaping your /s, with a \.

\/. yes, it looks awful. That's how I remember it :P"
Guest [Entry]

"replacing separator is not always /.

Try

%s;hoge/hoge;fuga/fuga;g

in the text of ""http://hoge/hoge"""