Thursday, January 10, 2013

Backslashes in execute normal string

Hi,

given the following file

\foo

^ (cursor)

\bar

When I run :execute "normal! /\\bar\r" vim yells:

E486: Pattern not found: \bar

If I run /\\bar in normal mode this works. What is wrong with this
and how do I rewrite the search so that \bar is found including the
backslash?

Marco

No comments: