Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Michael Erdely" <cygwin@cygwin.com>
To: <cygwin@cygwin.com>
Subject: RE: Editor to use with ssh'ing into NT server?
Date: Wed, 20 Jun 2001 07:38:09 -0400
Message-ID: <001301c0f97d$7b98e5e0$051865c6@merdely>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
In-Reply-To: <549AB966B45DD311A58A0000E86CEA8D0CAED5F2@postoffice.btitele.com>

Can I make a guess that you're using cmd as your shell?

You could write a batch file that starts bash launching vim and using
cygpath to map the Windows path to a Cygwin path for vim to understand.

Your batch file could contain the following:
@echo off
c:\cygwin\bin\bash.exe -c '/usr/bin/vim "`cygpath -u %1`"'

HTH,
-ME

-----Original Message-----
From: cygwin-owner@sources.redhat.com
[mailto:cygwin-owner@sources.redhat.com] On Behalf Of David Edward
Shapiro
Sent: Tuesday, June 19, 2001 2:35 PM
To: 'cygwin@cygwin.com'
Subject: Editor to use with ssh'ing into NT server?


I can't get an editor to work correctly when I ssh into NT server.  I
get 



C:\winnt\profiles\mailmon>vim
vim
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

I have set TERM to just about everything I can think of

vt100
ansi
cygwin

but I do not get any better results.

vim starts up, but the keyboard mappings are wrong.  I can't use esc to
get
into command mode, i for insert, I can't scroll down in the file (you
just
see the first 12 or so lines).  What are you all using to edit via an
ssh
connection into the nt boxes?  Certainly there is some easy fix to this,
no
(i.e., ssh option, variable setting, etc.)?  

David


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

