trouble controlling vim with subprocess on windows machine

Eric_Dexter at msn.com Eric_Dexter at msn.com
Tue Jul 17 01:45:33 CEST 2007


On Jul 16, 7:45 am, Yves Pouplard <yves.poupl... at free.fr> wrote:
> On Mon, 09 Jul 2007 05:30:04 -0500, Nick Craig-Wood
>
> <n... at craig-wood.com> wrote:
> >Eric_Dex... at msn.com <Eric_Dex... at msn.com> wrote:
> >>       I am having trouble contolling vim with subprocess on a windows
> >>  machine.  It appears that vim comes up on the machine all right and it
> >>  sometimes looks like it is doing the searchs what I am asking it to do
> >>  but when I am asking it to load a file it doesn't do anything.  Is
> >>  there something I need to do to push the data through the pipe??  Here
> >>  is a couple different ways I am trying to do it.
>
> >For controlling an interactive program subprocess isn't the right
> >tool.  Subprocess only really does one way communication - it isn't
> >good at conversations.  I'd suggest pexpect but it doesn't work on
> >windows.
>
> pexpect works with Cygwin's python :)
>
>
>
> >You appear to be doing stuff withcsound.  There are several python
> >modules out there which interface withcsound- did you investigate
> >those?- Hide quoted text -
>
> - Show quoted text -

I managed to get it as a com object (they have an example that isn't
very good on the gvim site) and it is in csound routines as of 2pm
today...  Looks like it should be easy to do with sed also but I don't
know that much about it.




More information about the Python-list mailing list