Generate some text:
vim -Nu NONE2000iasdf qwer<esc>yy1000pSearch for something, skipping everything, with timeout 100:
gg:call search('\S\+', 'W', 0, 100, {-> v:true})Vim should be responsive almost immediately, in 100ms.
Instead vim is not responsive for many seconds
There is nothing in documentation for search() that would hint timeout shouldn't work for this case.
Real use case is comment text object where I need to skip non-commments(using synstack and friends) to find start of the next comment. If there are no comments in a large file or comments are too far away -- it "hangs" no matter what timeout is.
My workaround is to use stopline to search for the next 100 lines only, but am curious if timeout should work in this case?
9.1.724
windows and debian, gui and terminal with bash.
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
That is true. The timeout is basically only for searching. It's not used for expression evaluation. It's basically a duplicate of #15404
Changing that would be a much bigger task and i am not sure how to do it currently.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()