On 17/09/12 00:32, Timothy Madden wrote:
> On 09/16/2012 11:37 PM, Simon W. Jones wrote:
>> 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?
>
> It looks to me what you actually needed was how to get the right input
> for the python script.
>
> Timothy Madden
>
Well, at first you didn't mention what kind of input your script needed;
I had to guess it from your mention of :%!nameofscript in a later post.
Best regards,
Tony.
--
With sufficient thrust, pigs fly just fine.
-- RFC 1925
--
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
Sunday, September 16, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment