Friday, September 15, 2017

Re: Terminal and pipes

On 15/09/2017 20:43, Bram Moolenaar wrote:
>
> Lifepillar wrote:
>
>> How does one launch piped commands in Vim terminal?
>> The naïve:
>>
>> call term_start('ls | fzf')
>>
>> does not work. I guess that I should connect two jobs using
>> out_io and in_io, but is that possible?
>
> You need to do this with a shell:
>
> call term_start(['sh', '-c', 'ls | more'])

Aaah, of course! Way too simple… :)

Thanks,
Life.


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

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

No comments: