Hi! There is an error: The function
function MakeSearchString(str) return substitute(escape(@", '\\/.*$^~[]'), '\n', '\\n', 'g') endfunction
should be function MakeSearchString(str) return substitute(escape(a:str, '\\/.*$^~[]'), '\n', '\\n', 'g') endfunctionI have not seen this error before, because the function did the expected things even with this error.
Best regards, Georg