* Meino Christian Cramer [2006.11.23 02:45]:
> I want to search a longer string totally
> literally...regexp totally switched of, no
> exceptions.
function! LiteralSearch(string) range
let l:pattern = escape(a:string, '\\/.*$^~[]')
let @/ = l:pattern
normal n
endfunction
:command -nar
On Thu, Nov 23, 2006 at 11:59:59AM -0500, Jean-Rene David wrote:
> * Meino Christian Cramer [2006.11.23 02:45]:
> > I want to search a longer string totally
> > literally...regexp totally switched of, no
> > exceptions.
>
> function! LiteralSearch(string) range
>let l:pattern = escape(a:str