On Aug 10, 3:06 am, Ron Aaron <[email protected]> wrote:
>
> BTW, here is an excellent trick to asynchronously do something after some
> delay (here I want to restore sessions after 100ms while allowing things to
> run in the meantime):
>
>    call remote_send(v:servername, ":sleep 100m|ReloadSession<cr>")
>

Vim is not multi-threaded, I doubt things are actually running during
the sleep. Or maybe you just need time for non-Vim stuff initiated by
Vim to finish? What happens if you don't call sleep but just
ReloadSession (not that 100ms really matters)?

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui