I'm using Vim 7.4. I tried to search backward for front
and frnt
, so I pressed ? and entered the regular expression fro\?nt
. Vim tells me that it can't find fro?nt
(the backslash is missing in the message). None of the occurances that I can see are highlighted.
On the other hand, if I search forward, it finds them just fine. Even if I am at the end of the file and can't find anymore by searching forward, Vim recognizes their occurance earlier in the file by highlighting them. In that case, the message is that it can't find fro\?nt
, i.e., the backslash is not missing in the message.
I get that pressing ? to search backward might cause a problem with the \?
in the regular expression, but I would have thought that the backslash would have removed any doubt that question mark in the regular expression is not a delimiter. I was wondering if this was the actual intended behaviour. I couldn't find anything in the help that speaks to this. I also see the same behaviour for gVim complied for Windows 7 as well as the version packaged with Cygwin.