Hi Bram,

I read the documentation for job_start() and it's clear to me what it
does, so I tried this:

let job = job_start(["/bin/sh", "-c", "mpv --really-quiet /path/to/foo.ogg"])

But everything still gets too slow even though the music is playing.

Am I missing something?

Diego

On Tue, Feb 9, 2016 at 8:03 AM, Bram Moolenaar <[email protected]> wrote:
>
> Diego Viola wrote:
>
>> On Monday, February 8, 2016 at 11:27:31 PM UTC-2, Diego Viola wrote:
>> > I've just compiled vim from git and tried the new job functionality.
>> >
>> > I tried playing a song in the background first, as in:
>> >
>> > :call job_start('mpv /path/to/song.ogg')
>> >
>> > But it just slowed down the editor a lot, I got some output back in the 
>> > editor though.
>> >
>> > I also tried:
>> >
>> > :call job_start('ls')
>> >
>> > And I got output but I could not move around or anything, and it slowed 
>> > down vim a lot too.
>> >
>> > Any ideas what I'm doing wrong?
>>
>> I've just tried doing the same with Neovim and it worked perfectly
>> there, no hang or anything. It just worked.
>
> Please read the documentation, this is not doing what you think it's
> doing.
>
> --
> hundred-and-one symptoms of being an internet addict:
> 195. Your cat has its own home page.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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