Re: performance of =~ and !~ operators
- Quoting Hari Krishna Dara <hari_vim@...>:
> On Tue, 3 May 2005 at 8:19am, drchip@... wrote:
> > Now, on to the juicy stuff: one generic solution coming up!
> > com! -nargs=1 NP /^\(\(<args>\)\@!.\)*$/
> > Try
> > :NP somepattern
> > and it will match to any line not having "somepattern".
> Thanks Dr. Chip. This seems to work in a few cases that I tried. I
> actually tried to find a solution based on the \@! construct, but didn't
> get anything working, and didn't find a solution when searched in the
> archives (there were at least a couple of posts asking for this). I will
> now try to make use of it.
> Any idea if this (\@! atom) can performance really bad in any particular
I'm glad at least something got through, even if not to the list directly.
I've been using that Not-Pattern matching a lot in my AutoAlign ftplugins;
it seems to work well with what I've done.