Mintty versus xterm colors in Vim

Andy Koppe andy.koppe@gmail.com
Thu Aug 12 19:56:00 GMT 2010


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
>      character nvarbeta*8,nvarnhug*8,nvarpfus*8,nvarflux*8
>      parameter (nbtnap=51,nbrnnap=51)
>      external f0tfnpadd,fntaudiv,fnigana,f0gdadureeflux,
>     & f0fhetauhesenflux,f0fhetauhesedureenflux,f0fhetauhesedureetflux,
>     & f0tigpfus,f0f1igpfus,f0gdhigpfus,f0fhetauhesengdh
>      common/coalphabetatilde/alphantilde,alphattilde,betattilde,nbit,
>     & info
>      common/coonetwo/one,two
>      common/coidrhopedballoon/irhopedballoon
>      common/cocd/gamacd10,gamacd20
>      common/cogdq/gdq
> _______________________________________________________________________
>
> 1/ Launch the "XWin server" shortcut to get an xterm terminal
> Type:
> vim test.f
>
> test.f opens with the following colors:
> "*", "=", "/" 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:
> "*", "=", "/" 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=xterm-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



More information about the Cygwin mailing list