Can you use ? For search
If you search for a pattern in the register, and the pattern contains the character "/", can you just use the command ? instead of command / from normal mode to start pattern matching. In this case, the '/' char is no longer needed. (however you need to escape the '?' char now)
? will search in the opposite direction / , therefore, if you are not against the direction of the search, and your search template does not contain "?" char.
Also check out the escape() script if you want more.
JXITC Aug 4 '15 at 9:12 2015-08-04 09:12
source share