Le Mon, Apr 11, 2016 at 10:38:10PM +0200, Bram Moolenaar a écrit :
> 
> Hirohito Higashi wrote:
> 
> > I challenged.  But not done it.
> > But Kiichi was done it with the screen or the tmux.
> > Great.
> > 
> > https://github.com/vim/vim/compare/master...ichizok:fix-job-channel-gc.test
> 
> Interesting.  But this runs Vim in a separate terminal, which makes
> debugging difficult.  And it depends on tmux or screen.  I think with
> some changes in Vim we can do it more directly.

Hi

Perhaps a script like this.

---
if !has('timers') || !has('job')
  finish
end

let g:count = 0

function Init()
  let g:job = job_start(['ls'])
  let g:timer = timer_start(150, 'Handler', {'repeat': 42})
endf

function Handler(...)
  let g:count += 1
  if g:count == 1
    call garbagecollect()
  elseif g:count == 2
    unlet g:job
  elseif g:count == 3
    call garbagecollect()
  else
    call system('touch Xok')
    qa!
  end
endf

auto VimEnter * :call Init()
---

Regards
Damien

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui