delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/02/12:21:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <472B69D8.6020506@pixelearth.net>
Date: Fri, 02 Nov 2007 13:18:00 -0500
From: red AT pixelearth DOT net
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gvim: how to end <STDIN> input
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi List,

This is my first post. I've spent 2 days researching this simple
problem, to no avail:

SITUATION:
I have a (external) perl script that I call from vim/gvim (:!scriptname)
to ftp the current buffer to a server. I run gvim by first running
'startx', and then from 'x', I run gvim.

PROBLEM:
I have a line that takes <STDIN> as confirmation of the upload (y/n).
The script works fine in vim, but in gvim I can't find a way to end the
keyboard input, so the script and gvim hang. Pressing <enter> gives a
new line, and neither ctrl-d or ctrl-shft-d end the input either.

The script works fine in gvim without the <STDIN> line. I use the script
under linux gvim with no problem, and under cygwin vim and the vim in X.
The only problem is in gvim in cygwin.

This should be a simple fix, I just can't figure it out. The worst is
that gvim hangs, and I can't end the script. I have to kill gvim, the
perl process and clean the swp files manually. Unfun.

Any help very appreciated.

BML

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019