delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/09/14:53:28

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=Q571LQxybbn/8QDH4gSzwzolXakGHY
lPgEuz0NsQDVqjDqqRkSX8vwdsNaf55s5DR5sO6J3cinJ3TxAVAtkdC0/2w9JV4X
MudwZPNzHAYR0yak4ay48Qqa3rI/ZNPN4X8gY4C2D5WTwK7NeWqO43R4Xkl8FzE3
MzTIDRj4rACHg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=bJn3eF0Rc4bFAFNLe24bFdj8jtY=; b=fTdJ
drZ8mcPqNLyaq7nb7cq4LEUMX9zLNPUz0WcPPVCXAnf+CzjFrFgmJdbUtNqvy+xm
eNsOlaJwqKZK1nPK4Zx2/nQO5CGtr5KWjjOKAglDKC3V/9L/odAv75+RCy4odeO/
ee7HVRsPvjY3pY79oNJcN4Cnsots+cULJTx920M=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: =?UTF-8?B?UmVuw6kgQmVyYmVy?= <r DOT berber AT computer DOT org>
Subject: Re: 1.7.35: possible backspace key and arrow keys bug
Date: Thu, 09 Apr 2015 13:51:30 -0500
Lines: 42
Message-ID: <mg6hq4$gpo$1@ger.gmane.org>
References: <CAMOkCRZ4Tdg+UoydTj+ntXyyFvbhk8ug6A+LXAG3+zOw4UfuTw AT mail DOT gmail DOT com> <20150408221622 DOT GK20741 AT dinwoodie DOT org> <CAF+j1MP-dtu66bq_kj5qQ7W7m7m64A1RvwW=Cga6-o1W2X5JUw AT mail DOT gmail DOT com> <20150409173434 DOT GC6901 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <20150409173434.GC6901@calimero.vinschen.de>
X-IsSubscribed: yes

On 4/9/2015 12:34 PM, Corinna Vinschen wrote:
> On Apr  9 09:54, Weston Turner wrote:
>> I corroborate the original poster's experience with this issue.
>> 
>> Steps to reproduce the issue: for example open a file with vim 
>> under Cygwin, press: up, up, down, down, left, left, right,
>> right. Vim under Cygwin places:
>> 
>> C C D D B B A A
>> 
>> in the file due to the arrow keys being pressed. Vim under bash
>> on Linux or the Mac terminal does not treat the arrow keys as
>> file input, but rather simply uses them to move the cursor about
>> in the file.
> 
> WJFFM, as on Linux, in command mode as well as in insert mode.

You probably have a .vimrc on Cygwin, and the same or /etc/vimrc on Linux.

The real question:

Why vim on Cygwin doesn't install, or use if you add one, /etc/vimrc?

On Linux I have one with the following contents (which fixes the
thread problem):

" Begin /etc/vimrc

set nocompatible
set backspace=2
syntax on
set background=dark
if (&term == "iterm") || (&term == "putty")
  set background=dark
endif

" End /etc/vimrc

The 5th line doesn't work with the version installed on Cygwin, so you
have to comment it; but it would be nice to also have syntax highlighting.
-- 
René Berber


--
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

- Raw text -


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