On Mon, Mar 10, 2014 at 03:27:43PM -0700, Yuri Vic wrote:
> I use vim on the light background, and the blue comment color has always 
> bothered me. The problem is that blue looks very much like black, and 
> comments overall look too much like the main text.
> 
> Recently I switched the comment to gray, and am much more happy about the 
> code look aesthetically. Also comments in the code became much more readable 
> and noticeable.
> 
> Not sure if people would share my feeling about this. But maybe majority of 
> users will agree?

> --- runtime/syntax/syncolor.vim       2014-03-09 14:07:15.000000000 -0700
> +++ runtime/syntax/syncolor.vim       2014-03-09 14:07:35.000000000 -0700
> @@ -41,7 +41,7 @@
>    SynColor Underlined        term=underline cterm=underline 
> ctermfg=LightBlue gui=underline guifg=#80a0ff
>    SynColor Ignore    term=NONE cterm=NONE ctermfg=black ctermbg=NONE 
> gui=NONE guifg=bg guibg=NONE
>  else
> -  SynColor Comment   term=bold cterm=NONE ctermfg=DarkBlue ctermbg=NONE 
> gui=NONE guifg=Blue guibg=NONE
> +  SynColor Comment   term=bold cterm=NONE ctermfg=Gray ctermbg=NONE gui=NONE 
> guifg=Blue guibg=NONE
>    SynColor Constant  term=underline cterm=NONE ctermfg=DarkRed ctermbg=NONE 
> gui=NONE guifg=Magenta guibg=NONE
>    SynColor Special   term=bold cterm=NONE ctermfg=DarkMagenta ctermbg=NONE 
> gui=NONE guifg=SlateBlue guibg=NONE
>    SynColor Identifier        term=underline cterm=NONE ctermfg=DarkCyan 
> ctermbg=NONE gui=NONE guifg=DarkCyan guibg=NONE

Which hue DarkBlue appears depends upon your terminal emulator.  Most
terminals allow you to change this color via a setting or (in the case
of X11 applications) resource.

For instance, in my .Xdefaults I set xterm and urxvt's idea of
DarkBlue to the X11 color dodgerblue:

xterm*Color4: dodgerblue
urxvt*color4: dodgerblue

It is more sensible to change which color DarkBlue appears at this
level instead of in a Vim config file which may be blown away the next
time you update Vim on your computer.

Cheers,

-- 
Erik Falor
Registered Linux User #445632                  http://linuxcounter.net

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui