E486: Pattern not found

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 /:

:%s/IsilonAsperaVOD/Isilon\/asperavod/g

But, it's better to avoid the escaping altogether by using a different separator character:

:%s#IsilonAsperaVOD#Isilon/asperavod#g