delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/12/14:17:26

X-Recipient: archive-cygwin AT delorie DOT 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, 12 Aug 2010 11:17:09 -0700
From: Gary Johnson <garyjohn AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: vi and vim
Message-ID: <20100812181709.GB2384@KCJs-Computer>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C62CE29 DOT 6040805 AT vicor DOT com> <4C62D07E DOT 7090603 AT cygwin DOT com>
Mime-Version: 1.0
In-Reply-To: <4C62D07E.7090603@cygwin.com>
User-Agent: Mutt/1.4.2.2i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 2010-08-11, Larry Hall (Cygwin) wrote:
> On 8/11/2010 12:22 PM, Dave Robison wrote:
> >Hello,
> >
> >At the risk of bringing down a cascade of derision, is there any way to
> >use vi instead of vim in cygwin?
> >
> >I really prefer vi, but I can't seem to find a binary for it which isn't
> >linked to one iteration or another of vim.
> >
> >If not, c'est la vie.
> 
> Cygwin provides the vim package, which creates a link to 'vim-nox.exe'
> called 'vi'.  Unless you set 'nocompatible' in your ~/.vimrc, you will get
> a vi-compatible version of vim.

Actually, just the presence of ~/.vimrc will set 'nocompatible'.
See

    :help compatible-default

If you want a vi-compatible vim, name your rc file .exrc and not
.vimrc.

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

- Raw text -


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