Sunday, September 16, 2012

Re: Putting stdout from Python into vim

Marc,

The solution that worked was the one provided by Tony, as I mentioned in my reply to him. It was:

:update | let variablename = system('nameofscript < ' . shellescape(expand('%'),1))

I did try your suggestion (as I've already written).

-------------
Simon W. Jones.

On 16 Sep 2012, at 21:20, Marc Weber <marco-oweber@gmx.de> wrote:

> Excerpts from Simon W. Jones's message of Sun Sep 16 21:30:53 +0200 2012:
>> I read and tried it Marc but it didn't work for me. Thanks for responding.
> Hard to believe. Do you want to capture stderr?
> let var = system('python script.py 2>&1') is the way to go then.
>
> What else can go wrong this way?
>
> Marc Weber
>
> --
> 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 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

No comments: