Thursday, January 10, 2013

Re: Backslashes in execute normal string

Am 10.01.2013 20:47, schrieb Marco:
> \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?

"\\bar" => \bar <= not found
"\\\\bar" => \\bar <= you manually searched for this one

--
Andy

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: