dense-analysis/neural

Stop "Press Enter to Continue"

w0rp opened this issue · 1 comments

w0rp commented

I have been working with Vim plugins for over 6 years now and I still don't understand how to reliably output messages to the status line you can read later that don't result in Vim saying "Press Enter to Continue" ever. I would like to be able to echo Neural's messages without this happening. Maybe someone knows a better way.

w0rp commented

I actually just figured it out. Because the command itself is long, Vim flips into "a prompt is needed" mode and despite the length of the echo text will prompt anyway. If you fire a 0 millisecond time such that you escape the branch of code where Vim thinks the prompt is long, you can echo a message right after the command has finished being processed, and then you don't get the prompt.