Loading ...
Sorry, an error occurred while loading the content.

Re: performance of =~ and !~ operators

Expand Messages
  • drchip@campbellfamily.biz
    ... Hello, Hari! 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
    Message 1 of 12 , May 4, 2005
    • 0 Attachment
      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
      > scenario?

      Hello, Hari!

      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.

      Best wishes,
      Chip Campbell
    Your message has been successfully submitted and would be delivered to recipients shortly.