I am new to VI. How do you replace two forward slashes with one globally?
I did:
:%s/\//
and
:%/\//\/g
Those don't work as desired.
Example or Goal
//This is good//because it//works;
//on every//Line it//is used one;
Desired output
/This is good/because it/works;
/on every/Line it/is used one;
:scan take different separators they would never find the other question. Plus this question focuses on substituting/s while my question focuses on the general usage of:swith!... So I wouldn't close this one as duplicate. – statox Jul 22 '21 at 08:07