w0ng / vim-hybrid

A dark color scheme for Vim
1.48k stars 235 forks source link

Don't use the same color for `Special` as for strings #24

Closed lithammer closed 9 years ago

lithammer commented 9 years ago

Good for differentiating string interpolation markers like %s, consider this Python example.

Before:

screen shot 2015-02-12 at 17 48 33

After:

screen shot 2015-02-12 at 17 49 02

lithammer commented 9 years ago

The actual color used is debatable though :)

w0ng commented 9 years ago

I prefer that Strings and Special use the same colour by default, similar to the group highlighting of Jellybeans (https://github.com/nanotech/jellybeans.vim/blob/master/colors/jellybeans.vim).

Glad you're making personalisations, though. You can use :h group-name in vim for a preview of the colours and their groups.

lithammer commented 9 years ago

Fair enough. Would you consider accepting this as an option? Something along the lines of:

if !exists("g:hybrid_highlight_special_string_characters")
  let g:hybrid_highlight_special_string_characters = 0
endif

if g:hybrid_highlight_special_string_characters == 1
  exe "hi! Special"         .s:fg_orange      .s:bg_none        .s:fmt_none
else
  exe "hi! Special"         .s:fg_green       .s:bg_none        .s:fmt_none
endif

Glad you're making personalisations, though. You can use :h group-name in vim for a preview of the colours and their groups.

Nice, thanks for the tip. I just used :hi for this.