On Mar 19, 2:35 am, epanda <callingel...@hotmail.fr> wrote:
> I would like that my GetAsyncText(temp_file_name) read continuously
> the last line of file  'c:\infos.txt' in order to display it in
> status
> line.
> But I don't see HELLO, just hello world.
> Don't understand....

I think you may have misunderstood the point of the example code you
seem to have based this on. I assume you saw the previously featured
tip on the wiki:

http://vim.wikia.com/wiki/Execute_external_programs_asynchronously_under_Windows

You cannot, with this method alone, get something to happen
asynchronously WITHIN Vim. The tip only deals with getting a task to
happen OUTSIDE OF Vim, then getting the results into Vim ONCE, without
causing Vim to hang and wait for the results.

If you want a continuous refresh, that will need to be controlled by
whatever external task you spawn. You will need to wait in a loop in
the external process, and call Vim's client-server features whenever
Vim should take some action. You will not be able to make Vim take the
action on its own, at least not easily. Vim has no built-in
asynchronous capabilities.

-- 
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

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to