Hi,
-- With a buffer having just..
aaa
bbb
aaa
bbb
aaa
..and with the cursor on the first 'a' on the first line, when you search for 'aa', the hit on the first line -- the 'aa' starting at column 2 -- is not found, rather the cursor lands on the 3rd line. Is this a documented behavior? It is the same behaviour in vim 8 and 9. I have not tried other versions.
Playing around on it a bit more, I kinda understand why. Vim seems to try to match the "aa" in the current position, and avoid the 'a' in column 2 for subsequent matches. A zero width pattern seems to hit all occurrences (\(aa\)\@=).
Anyway, the current behavior is very confusing, perhaps should be documented if not done already.
Regards,
-Arun
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAJUkyiFUkaBcKLXDh-CBNSZGYqATaUOMYz2tOqAQuOzD4uNFRA%40mail.gmail.com.
No comments:
Post a Comment