Skip to content

Can't reverse-search with a zero-width negative lookahead assertion #21

Description

@chocolateboy

eregex.vim: e169210
vim: 7.4
OS: Linux

I have a logfile that looks something like this:

host: example.com
action: frobnicate foo
status: OK

host: example.com
action: bamboozle baz
status: network error

I want to search for entries that don't have "status: OK" i.e. the errors. This works fine when searching from the top down e.g.

:M/status: (?!OK)

But it's not working for me at all with a reverse search. I navigate to the bottom of the document, enter:

:M?status: (?!OK)

And get the following error:

E486: Pattern not found: status: (

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions