delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/10/15:46:30

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=AgEeh9wdeOc51zrXZ1IigwNr/AQyPg
acX/uWsbVkHVKBxo8xIJC0ZMveTVTMRWzh6EKnDyL3hia7zTB7uZCMDBd+5Oi4fl
Hm7ZA0l04oO7BTslGh20TqzJeFE5T2NBJMSXqTDoAffcYA7fRGjpT+hhk+Vd0F1z
Td5pCBOhu+T8g=
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=yRxEgEZVvFWsd+SM8ICehR6Lf7g=; b=EVx5
GgnC5CAKbmlN76AHXcEWZLmzDjfZCfzbXh661t6s+Qsb3Segf23vVpNJD86XGnwN
N+JTiAi0axMHzbJ42vaLNHQA+eulisYXgloUjxp9WviSjLhBek+J21IitMqe4OI+
MPFab9/AYSC3joJ6NEXd9mhb9ECkTsucg3B2X/8=
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.7 required=5.0 tests=AWL,BAYES_20,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: =?windows-1252?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: 1.7.35: possible backspace key and arrow keys bug
Date: Fri, 10 Apr 2015 14:44:40 -0500
Lines: 57
Message-ID: <mg999s$hm9$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> <mg6hq4$gpo$1 AT ger DOT gmane DOT org> <20150410192151 DOT GA13043 AT phoenix>
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: <20150410192151.GA13043@phoenix>
X-IsSubscribed: yes

On 4/10/2015 2:21 PM, Gary Johnson wrote:
> On 2015-04-09, René Berber wrote:

>> Why vim on Cygwin doesn't install, or use if you add one, /etc/vimrc?
> 
> Executing
>     $ vim --version
> shows
>        system vimrc file: "$VIM/vimrc"
>          user vimrc file: "$HOME/.vimrc"
>      2nd user vimrc file: "~/.vim/vimrc"
>           user exrc file: "$HOME/.exrc"
>       fall-back for $VIM: "/etc"
>      f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
> From within vim,
>     :echo $VIM
> shows
>     /usr/share/vim
...
> So, Cygwin's vim looks for the system vimrc at /usr/share/vim/vimrc,
> not /etc/vimrc.
...
> Personally, I really like that Cygwin does not include a system
> vimrc in its vim package.

Two points:

1. Users expect things to work out-of-the-box.  As shown by this thread
vim is not.

2. If there is a standard, it should be used.  Moving from Linux to
Cygwin should be transparent, but in the former there is an /etc/vimrc,
in the later there isn't, and even more confusing: if you add one it
doesn't work (for the reason you showed).

...
> I don't understand what you mean that the 5th line doesn't work and
> has to be commented.

It means that if you leave it, vim will complain when you start it:

"Error detected while processing /etc/virc:
line    5:
E319: Sorry, the command is not available in this version: syntax on"

> I have "syntax on" in my ~/.vimrc file and
> syntax highlighting works just fine.

Corinna already pointed that out.

The point is: why does it work when in ~/.vimrc, and not on /etc/virc
(not a typo, /etc/vimrc is not used at all, another deviation from the
standard?).

Thanks for your reply, but this thread is getting off-topic.
-- 
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