delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/22/17:31:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20011122232538.03a2c208@imap.local.mscha.com>
X-Sender: ml AT imap DOT local DOT mscha DOT com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Thu, 22 Nov 2001 23:30:11 +0100
To: cygwin AT cygwin DOT com
From: Michael Schaap <cygwin AT mscha DOT org>
Subject: Re: Unix/DOS text mode?
In-Reply-To: <5.1.0.14.2.20011122225059.036d77f0@imap.local.mscha.com>
References: <20011122190704 DOT 96085 DOT qmail AT web13502 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

At 23:05 22-11-2001, I wrote:
>The default value of "fileformats" depends on whether the "compatible" 
>option is set.
>If it is, then fileformats="", so file format autodetection is disabled.
>If it isn't, then fileformats="unix,dos".
>(This is for the UNIX version (including Cygwin).  The Windoze native 
>version uses "dos,unix" in both cases.)
>
>If a .vimrc exists, even if it is empty, "nocompatible" will be set, 
>otherwise "compatible" will be set.
>
>So, a default installation of vim on Cygwin will not enable file format 
>detection.
>
>(Source: ":help compatible".)

Here's a patch that changes the default fileformats in vi-compatible mode 
to "unix,dos", for Cygwin.
I'll also attach it, since I'm using Eudora (with format=flowed), which may 
screw up indentation.

If Corinna likes the patch, I'll also send it to the vim-dev list.  (It may 
be a while before it becomes "official", though, since Bram is on a 
well-deserved vacation.)

  - Michael

-------------------------8<-------------------------
--- ORIG/option.h       Thu Nov 22 23:10:21 2001
+++ option.h    Thu Nov 22 23:19:03 2001
@@ -67,7 +67,11 @@
  # else
  #  define DFLT_FF      "unix"
  #  define DFLT_FFS_VIM "unix,dos"
-#  define DFLT_FFS_VI  ""
+#  if defined(__CYGWIN__) || defined(__CYGWIN32__)
+#   define DFLT_FFS_VI "unix,dos"      /* Cygwin always needs file 
detection */
+#  else
+#   define DFLT_FFS_VI ""
+#  endif
  #  define DFLT_TEXTAUTO        FALSE
  # endif
  #endif
------------------------->8-------------------------

-- 
     I always wondered about the meaning of life.   So I looked it
     up in the dictionary under "L" and there it was - the meaning
     of life.  It was not what I expected.                  - Dogbert 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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