I need to repoint a mount from /IsilonAsperaVOD/data
to /Isilon/asperavod/data
. Using vim I do:
:s/IsilonAsperaVOD/Isilon\\/asperavod/g
which returns the error. I can type out the path or copy/past with same effect…? how do I do this
vim
I need to repoint a mount from /IsilonAsperaVOD/data
to /Isilon/asperavod/data
. Using vim I do:
:s/IsilonAsperaVOD/Isilon\\/asperavod/g
which returns the error. I can type out the path or copy/past with same effect…? how do I do this
Best Solution
You don't need
:global
(as in your own answer), prefixing a:%
range for the entire file will suffice (without that, the:s
only applies to the current line).The problem with your original attempt is that you've escaped twice; there needs to be a single backslash in front of the
/
:But, it's better to avoid the escaping altogether by using a different separator character: