Friday, May 25, 2012

Re: Substitution of metacharacters

On Fri, May 25, 2012 at 05:47:35AM EDT, Christian Brabandt wrote:
> On Fri, May 25, 2012 11:32, Chris Jones wrote:

> > Search/replace behavior in the GUI is not only different than in the
> > console version but appears to lead to inconsistencies: try a search
> > '.*' for instance and compare with '\s\s'.

> I think the search/replace dialog uses the \V atom to make the
> search "very nomagic", so you need to use \.\*

Yes, I didn't mention it in my post but I did check the GUI's setting by
a ':set magic?' and noticed that it was (recommended for portability's
sake by the manual..) that it is also set to 'magic' in the GUI.. same
as the console version.

Do you mean that the code overrides this setting for the GUI search..?

Anyway, I don't use the GUI so it doesn't affect me but I was thinking
that there may be real world cases where possible inconsistencies (if
there are any) might lead to false positives/negatives.. making the
search functionality unreliable for the user even when he's trying to
search on a regex.. If so, and depending on the context this might not
be a good thing.. (?)

CJ

--
Focus follow mouse users will burn in hell!!!

--
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: