delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/12/15:56:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_ADLTOBFU,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1299EF3181B10F479D85C328013285240331C4E0@THEZE.intra.cea.fr>
References: <1299EF3181B10F479D85C328013285240331C4E0 AT THEZE DOT intra DOT cea DOT fr>
Date: Thu, 12 Aug 2010 20:56:46 +0100
Message-ID: <AANLkTi=fHgAL4tHLsowKDSSBbNFNUDdsKfThL3gN3K+S@mail.gmail.com>
Subject: Re: Mintty versus xterm colors in Vim
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
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 12 August 2010 18:30, JOHNER Jean 066030 wrote:
> Hello,
> Consider a .vimrc containing only the following line:
> syntax on
> Consider the following "test.f" fortran file:
> ______________________________________________________________________
> c Version 1.0
> *deck main
> c Following comments when not preceded by a blank line
> =C2=A0 =C2=A0 =C2=A0character nvarbeta*8,nvarnhug*8,nvarpfus*8,nvarflux*8
> =C2=A0 =C2=A0 =C2=A0parameter (nbtnap=3D51,nbrnnap=3D51)
> =C2=A0 =C2=A0 =C2=A0external f0tfnpadd,fntaudiv,fnigana,f0gdadureeflux,
> =C2=A0 =C2=A0 & f0fhetauhesenflux,f0fhetauhesedureenflux,f0fhetauhesedure=
etflux,
> =C2=A0 =C2=A0 & f0tigpfus,f0f1igpfus,f0gdhigpfus,f0fhetauhesengdh
> =C2=A0 =C2=A0 =C2=A0common/coalphabetatilde/alphantilde,alphattilde,betat=
tilde,nbit,
> =C2=A0 =C2=A0 & info
> =C2=A0 =C2=A0 =C2=A0common/coonetwo/one,two
> =C2=A0 =C2=A0 =C2=A0common/coidrhopedballoon/irhopedballoon
> =C2=A0 =C2=A0 =C2=A0common/cocd/gamacd10,gamacd20
> =C2=A0 =C2=A0 =C2=A0common/cogdq/gdq
> _______________________________________________________________________
>
> 1/ Launch the "XWin server" shortcut to get an xterm terminal
> Type:
> vim test.f
>
> test.f opens with the following colors:
> "*", "=3D", "/" are in a readable dark brown
> Continuation "&" is in yellow
>
> 2/ Open a Mintty terminal with black foreground and white background
> Type
> vim test.f
>
> test.f opens with the following colors:
> "*", "=3D", "/" are in a difficultly readable light brown
> Continuation "&" is in yellowish gray

Looks like vim automatically enables 256-color mode in xterm. Invoke
vim with TERM=3Dxterm-256color to enable it in mintty too.

(You can set that variable on the 'Output' page of mintty's options.
Requires a restart of mintty to take effect.)

Andy

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