Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chocolateboy opened this issue Jul 1, 2016 · 2 comments
Open

Comments

@chocolateboy
Copy link
Contributor

chocolateboy commented Jul 1, 2016

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: (
@huyz
Copy link

huyz commented Nov 10, 2022

I get the same error when with a zero-width positive lookahead assertion. Works in forward search, but not backward search.

@Silentdoer
Copy link

hi, this has been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants