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, 12 Aug 2010 11:17:09 -0700
From: Gary Johnson <garyjohn@spocom.com>
To: cygwin@cygwin.com
Subject: Re: vi and vim
Message-ID: <20100812181709.GB2384@KCJs-Computer>
Mail-Followup-To: cygwin@cygwin.com
References: <4C62CE29.6040805@vicor.com> <4C62D07E.7090603@cygwin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4C62D07E.7090603@cygwin.com>
User-Agent: Mutt/1.4.2.2i
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 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

