Friday, August 30, 2013

How to correctly run an infinite loop and still work with buffers in a VIM plugin?

How to correctly run an infinite loop and still work with buffers in a VIM
plugin?

I am writing a VIM plugin in Python. I would like to be able to run a
function that would wait for events in the background and update a buffer
when needed, without freezing the whole window. Is that possible?
I tried running a separate thread, which didn't help. The changes in the
buffer are reflected only when the function returns (and the blocking
thread terminates).

No comments:

Post a Comment