'substitution operator :s in VIM in unix [duplicate]
In unix, while using VIM and the substitue command I am unable to replace the value to a string containing special character /
:%s/var1/"ab1/ab2/ab3"/g
I need to replace the entire file containing var1 with ab1/ab2/ab3
Output in vim I see: Trailing characters
Solution 1:[1]
Escape both / like so \/.....
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bib |
