X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Thu, 16 Feb 2012 07:47:47 -0800
From: Gary Johnson <garyjohn@spocom.com>
To: cygwin@cygwin.com
Subject: Re: Can't edit crontab
Message-ID: <20120216154747.GB7853@phoenix>
Mail-Followup-To: cygwin@cygwin.com
References: <4F3CEB27.8060004@yahoo.es>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F3CEB27.8060004@yahoo.es>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2012-02-16, Emlio wrote:
> Hi all
> 
> I'm using cygwin in order to use cron under an XP machine. When I run
> the command
> 
> $ crontab -e
> 
> I get a vi (vim?) editor, but I'm not able to use it propertly. After
> pressing "insert" the keyboard doesn't work properly. For example, if I
> press the arrows I get characters such as A, B, C... the backspace key
> doesn't work, and writing a cron line becomes a really hard (impossible)
> task.

If you would really rather use nano, then ignore the rest of this.

This looks like a mismatch between the capabilities of your terminal
and what Vim thinks those capabilities are, usually caused by TERM
being set to the wrong value for the terminal being used.

What terminal are you using?  The Windows Console?  Cygwin's mintty?

What is the value of TERM?

    $ echo $TERM

What version of vi or Vim are you using?  Within the editor, execute

    :version

and see what the first four lines say.

Regards,
Gary


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

