trouble controlling vim with subprocess on windows machine

Josiah Carlson josiah.carlson at sbcglobal.net
Mon Jul 9 12:06:17 EDT 2007


Eric_Dexter 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.
[snip]

This recipe for asynchronous communication using subprocess could be 
used to write an expect-like tool:
   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554

It works on both Windows and *nix.


  - Josiah



More information about the Python-list mailing list