delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/01/04:27:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 1 Jul 2002 10:26:47 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: no syntax highlighting in vim (latest) win2k
Message-ID: <20020701102647.A20028@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5A95B0B37820D511AD1500B0D0AADF774DE020 AT lbsvnt4>
Mime-Version: 1.0
In-Reply-To: <5A95B0B37820D511AD1500B0D0AADF774DE020@lbsvnt4>
User-Agent: Mutt/1.3.22.1i

On Mon, Jul 01, 2002 at 09:40:58AM +0200, BStrohhaecker AT Hueller-Hille DOT com wrote:
> Von: Dan Bosold [mailto:hamishog AT yahoo DOT com]
> Gesendet: Sonntag, 30. Juni 2002 17:27
> 
> > vim 6.X, latest from cygwin and win2k. fresh install
> > and i cannot get syntax  highlighting to work in vim.
> > shell highlighting, ls, etc works just fine .with vim,
> > i get the following errors:
> > 
> > 'Trailing characters: endif^M'
> > 'Command already exists: use ! to redifine'
> > 'Not an editor command: ^M'
> > 
> > ...
>  
> I assume that your syntaxfiles have DOS-style line endings.
> Cygwin's vim seems not to like them.

Correct.  I discussed that with Bram Moolenaar once.  He refused
to add the crlf/lf conversion to the code reading the syntaxfiles
and I second that.  On Cygwin all vim syntaxfiles have to be in
binarymode.  The reason is that e. g. the following is a valid command:

  map <F1>  :wq!

If the crlf/lf conversion would take place, this command would
falsely be recognized as

  map <F1>  :wq!

with a CRLF eol even if the file is actually only containing LF as
eol.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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