At the moment there is the limitation that repl width shall be at least 16 chars due to that the parser expects the string ^__VIM_PAYLOAD__ in one line.
However, it may happens that the REPL window is so small that Vim receives multi-line message like the following:
The idea is to accumulate lines through a FeedLines() function which is similar to FeedChars() and catch keywords like __VIM_PAYLOAD__, __END__, prompts, error, etc.
At the moment there is the limitation that repl width shall be at least 16 chars due to that the parser expects the string
^__VIM_PAYLOAD__in one line.However, it may happens that the REPL window is so small that Vim receives multi-line message like the following:
The idea is to accumulate lines through a
FeedLines()function which is similar toFeedChars()and catch keywords like__VIM_PAYLOAD__, __END__, prompts, error, etc.