Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

latest zenburn colorscheme

  • Loading branch information...
commit cf3f8a24fc411481a52f8135436b7cf7af381a65 1 parent e8375a7
@scrooloose authored
Showing with 122 additions and 45 deletions.
  1. +122 −45 colors/zenburn.vim
View
167 colors/zenburn.vim
@@ -1,7 +1,7 @@
" Vim color file
" Maintainer: Jani Nurminen <slinky@iki.fi>
-" Last Change: $Id: zenburn.vim,v 2.3 2008/07/30 17:34:37 slinky Exp $
-" URL: http://slinky.imukuppi.org/zenburnpage/
+" Last Change: $Id: zenburn.vim,v 2.13 2009/10/24 10:16:01 slinky Exp $
+" URL: http://slinky.imukuppi.org/zenburnpage/
" License: GPL
"
" Nothing too fancy, just some alien fruit salad to keep you in the zone.
@@ -12,7 +12,16 @@
" Owes heavily to other Vim color files! With special mentions
" to "BlackDust", "Camo" and "Desert".
"
-" To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn.
+" To install, copy to ~/.vim/colors directory.
+"
+" Alternatively, you can use Vimball installation:
+" vim zenburn.vba
+" :so %
+" :q
+"
+" For details, see :help vimball
+"
+" After installation, use it with :colorscheme zenburn.
" See also :help syntax
"
" Credits:
@@ -22,30 +31,55 @@
" bug fixing
" - Charlie - spotted too bright StatusLine in non-high contrast mode
" - Pablo Castellazzi - CursorLine fix for 256 color mode
+" - Tim Smith - force dark background
+" - John Gabriele - spotted bad Ignore-group handling
+" - Zac Thompson - spotted invisible NonText in low contrast mode
+" - Christophe-Marie Duquesne - suggested making a Vimball
"
" CONFIGURABLE PARAMETERS:
-"
+"
" You can use the default (don't set any parameters), or you can
" set some parameters to tweak the Zenburn colours.
"
+" To use them, put them into your .vimrc file before loading the color scheme,
+" example:
+" let g:zenburn_high_Contrast=1
+" colors zenburn
+"
" * You can now set a darker background for bright environments. To activate, use:
" contrast Zenburn, use:
"
" let g:zenburn_high_Contrast = 1
"
+" * For example, Vim help files uses the Ignore-group for the pipes in tags
+" like "|somelink.txt|". By default, the pipes are not visible, as they
+" map to Ignore group. If you wish to enable coloring of the Ignore group,
+" set the following parameter to 1. Warning, it might make some syntax files
+" look strange.
+"
+" let g:zenburn_color_also_Ignore = 1
+"
" * To get more contrast to the Visual selection, use
-"
+"
" let g:zenburn_alternate_Visual = 1
-"
+"
" * To use alternate colouring for Error message, use
-"
+"
" let g:zenburn_alternate_Error = 1
"
" * The new default for Include is a duller orange. To use the original
" colouring for Include, use
-"
+"
" let g:zenburn_alternate_Include = 1
"
+" * Work-around to a Vim bug, it seems to misinterpret ctermfg and 234 and 237
+" as light values, and sets background to light for some people. If you have
+" this problem, use:
+"
+" let g:zenburn_force_dark_Background = 1
+"
+" NOTE:
+"
" * To turn the parameter(s) back to defaults, use UNLET:
"
" unlet g:zenburn_alternate_Include
@@ -53,13 +87,13 @@
" Setting to 0 won't work!
"
" That's it, enjoy!
-"
+"
" TODO
" - Visual alternate color is broken? Try GVim >= 7.0.66 if you have trouble
" - IME colouring (CursorIM)
set background=dark
-hi clear
+hi clear
if exists("syntax_on")
syntax reset
endif
@@ -93,7 +127,6 @@ hi LineNr guifg=#9fafaf guibg=#262626
hi Macro guifg=#ffcfaf gui=bold
hi ModeMsg guifg=#ffcfaf gui=none
hi MoreMsg guifg=#ffffff gui=bold
-hi NonText guifg=#404040
hi Number guifg=#8cd0d3
hi Operator guifg=#f0efd0
hi PreCondit guifg=#dfaf8f gui=bold
@@ -129,51 +162,50 @@ hi SpellLocal guisp=#7cac7c guifg=#9ccc9c
" Entering Kurt zone
if &t_Co > 255
- hi Boolean ctermfg=181
+ hi Boolean ctermfg=181
hi Character ctermfg=181 cterm=bold
- hi Comment ctermfg=108
+ hi Comment ctermfg=108
hi Conditional ctermfg=223 cterm=bold
hi Constant ctermfg=181 cterm=bold
hi Cursor ctermfg=233 ctermbg=109 cterm=bold
hi Debug ctermfg=181 cterm=bold
hi Define ctermfg=223 cterm=bold
- hi Delimiter ctermfg=245
+ hi Delimiter ctermfg=245
hi DiffAdd ctermfg=66 ctermbg=237 cterm=bold
- hi DiffChange ctermbg=236
- hi DiffDelete ctermfg=236 ctermbg=238
+ hi DiffChange ctermbg=236
+ hi DiffDelete ctermfg=236 ctermbg=238
hi DiffText ctermfg=217 ctermbg=237 cterm=bold
hi Directory ctermfg=188 cterm=bold
hi ErrorMsg ctermfg=115 ctermbg=236 cterm=bold
hi Exception ctermfg=249 cterm=bold
- hi Float ctermfg=251
- hi FoldColumn ctermfg=109 ctermbg=238
- hi Folded ctermfg=109 ctermbg=238
- hi Function ctermfg=228
- hi Identifier ctermfg=223
- hi IncSearch ctermbg=228 ctermfg=238
+ hi Float ctermfg=251
+ hi FoldColumn ctermfg=109 ctermbg=238
+ hi Folded ctermfg=109 ctermbg=238
+ hi Function ctermfg=228
+ hi Identifier ctermfg=223
+ hi IncSearch ctermbg=228 ctermfg=238
hi Keyword ctermfg=223 cterm=bold
hi Label ctermfg=187 cterm=underline
- hi LineNr ctermfg=248 ctermbg=235
+ hi LineNr ctermfg=248 ctermbg=235
hi Macro ctermfg=223 cterm=bold
hi ModeMsg ctermfg=223 cterm=none
hi MoreMsg ctermfg=15 cterm=bold
- hi NonText ctermfg=238
- hi Number ctermfg=116
- hi Operator ctermfg=230
+ hi Number ctermfg=116
+ hi Operator ctermfg=230
hi PreCondit ctermfg=180 cterm=bold
hi PreProc ctermfg=223 cterm=bold
hi Question ctermfg=15 cterm=bold
hi Repeat ctermfg=223 cterm=bold
- hi Search ctermfg=230 ctermbg=236
+ hi Search ctermfg=230 ctermbg=236
hi SpecialChar ctermfg=181 cterm=bold
hi SpecialComment ctermfg=108 cterm=bold
- hi Special ctermfg=181
- hi SpecialKey ctermfg=151
+ hi Special ctermfg=181
+ hi SpecialKey ctermfg=151
hi Statement ctermfg=187 ctermbg=234 cterm=none
- hi StatusLine ctermfg=236 ctermbg=186
- hi StatusLineNC ctermfg=235 ctermbg=108
+ hi StatusLine ctermfg=236 ctermbg=186
+ hi StatusLineNC ctermfg=235 ctermbg=108
hi StorageClass ctermfg=249 cterm=bold
- hi String ctermfg=174
+ hi String ctermfg=174
hi Structure ctermfg=229 cterm=bold
hi Tag ctermfg=181 cterm=bold
hi Title ctermfg=7 ctermbg=234 cterm=bold
@@ -181,14 +213,29 @@ if &t_Co > 255
hi Typedef ctermfg=253 cterm=bold
hi Type ctermfg=187 cterm=bold
hi Underlined ctermfg=188 ctermbg=234 cterm=bold
- hi VertSplit ctermfg=236 ctermbg=65
+ hi VertSplit ctermfg=236 ctermbg=65
hi VisualNOS ctermfg=236 ctermbg=210 cterm=bold
hi WarningMsg ctermfg=15 ctermbg=236 cterm=bold
hi WildMenu ctermbg=236 ctermfg=194 cterm=bold
hi CursorLine ctermbg=236 cterm=none
+ " spellchecking, always "bright" background
+ hi SpellLocal ctermfg=14 ctermbg=237
+ hi SpellBad ctermfg=9 ctermbg=237
+ hi SpellCap ctermfg=12 ctermbg=237
+ hi SpellRare ctermfg=13 ctermbg=237
+
+ " pmenu
+ hi PMenu ctermfg=248 ctermbg=0
+ hi PMenuSel ctermfg=223 ctermbg=235
+
if exists("g:zenburn_high_Contrast")
hi Normal ctermfg=188 ctermbg=234
+ hi NonText ctermfg=238
+
+ if exists("g:zenburn_color_also_Ignore")
+ hi Ignore ctermfg=238
+ endif
else
hi Normal ctermfg=188 ctermbg=237
hi Cursor ctermbg=109
@@ -199,7 +246,7 @@ if &t_Co > 255
hi foldcolumn ctermbg=238
hi folded ctermbg=238
hi incsearch ctermbg=228
- hi linenr ctermbg=238
+ hi linenr ctermbg=238
hi search ctermbg=238
hi statement ctermbg=237
hi statusline ctermbg=144
@@ -207,13 +254,34 @@ if &t_Co > 255
hi title ctermbg=237
hi todo ctermbg=237
hi underlined ctermbg=237
- hi vertsplit ctermbg=65
+ hi vertsplit ctermbg=65
hi visualnos ctermbg=210
hi warningmsg ctermbg=236
hi wildmenu ctermbg=236
+ hi NonText ctermfg=240
+
+ if exists("g:zenburn_color_also_Ignore")
+ hi Ignore ctermfg=240
+ endif
+ endif
+
+ if exists("g:zenburn_alternate_Error")
+ " use more jumpy Error
+ hi Error ctermfg=210 ctermbg=52 gui=bold
+ else
+ " default is something more zenburn-compatible
+ hi Error ctermfg=228 ctermbg=95 gui=bold
endif
endif
+if exists("g:zenburn_force_dark_Background")
+ " Force dark background, because of a bug in VIM: VIM sets background
+ " automatically during "hi Normal ctermfg=X"; it misinterprets the high
+ " value (234 or 237 above) as a light color, and wrongly sets background to
+ " light. See ":help highlight" for details.
+ set background=dark
+endif
+
if exists("g:zenburn_high_Contrast")
" use new darker background
hi Normal guifg=#dcdccc guibg=#1f1f1f
@@ -221,13 +289,14 @@ if exists("g:zenburn_high_Contrast")
hi Pmenu guibg=#242424 guifg=#ccccbc
hi PMenuSel guibg=#353a37 guifg=#ccdc90 gui=bold
hi PmenuSbar guibg=#2e3330 guifg=#000000
- hi PMenuThumb guibg=#a0afa0 guifg=#040404
+ hi PMenuThumb guibg=#a0afa0 guifg=#040404
hi MatchParen guifg=#f0f0c0 guibg=#383838 gui=bold
hi SignColumn guifg=#9fafaf guibg=#181818 gui=bold
hi TabLineFill guifg=#cfcfaf guibg=#181818 gui=bold
hi TabLineSel guifg=#efefef guibg=#1c1c1b gui=bold
hi TabLine guifg=#b6bf98 guibg=#181818 gui=bold
hi CursorColumn guifg=#dcdccc guibg=#2b2b2b
+ hi NonText guifg=#404040 gui=bold
else
" Original, lighter background
hi Normal guifg=#dcdccc guibg=#3f3f3f
@@ -235,15 +304,16 @@ else
hi Pmenu guibg=#2c2e2e guifg=#9f9f9f
hi PMenuSel guibg=#242424 guifg=#d0d0a0 gui=bold
hi PmenuSbar guibg=#2e3330 guifg=#000000
- hi PMenuThumb guibg=#a0afa0 guifg=#040404
+ hi PMenuThumb guibg=#a0afa0 guifg=#040404
hi MatchParen guifg=#b2b2a0 guibg=#2e2e2e gui=bold
hi SignColumn guifg=#9fafaf guibg=#343434 gui=bold
hi TabLineFill guifg=#cfcfaf guibg=#353535 gui=bold
hi TabLineSel guifg=#efefef guibg=#3a3a39 gui=bold
hi TabLine guifg=#b6bf98 guibg=#353535 gui=bold
hi CursorColumn guifg=#dcdccc guibg=#4f4f4f
+ hi NonText guifg=#5b605e gui=bold
endif
-
+
if exists("g:zenburn_alternate_Visual")
" Visual with more contrast, thanks to Steve Hall & Cream posse
@@ -257,18 +327,25 @@ else
endif
if exists("g:zenburn_alternate_Error")
- " use a bit different Error
- hi Error guifg=#ef9f9f guibg=#201010 gui=bold
+ " use more jumpy Error
+ hi Error guifg=#e37170 guibg=#664040 gui=bold
else
- " default
- hi Error guifg=#e37170 guibg=#332323 gui=none
+ " default is something more zenburn-compatible
+ hi Error guifg=#e37170 guibg=#3d3535 gui=none
endif
if exists("g:zenburn_alternate_Include")
" original setting
- hi Include guifg=#ffcfaf gui=bold
+ hi Include guifg=#ffcfaf gui=bold
else
" new, less contrasted one
- hi Include guifg=#dfaf8f gui=bold
+ hi Include guifg=#dfaf8f gui=bold
endif
- " TODO check for more obscure syntax groups that they're ok
+
+if exists("g:zenburn_color_also_Ignore")
+ " color the Ignore groups
+ " note: if you get strange coloring for your files, turn this off (unlet)
+ hi Ignore guifg=#545a4f
+endif
+
+" TODO check for more obscure syntax groups that they're ok
Please sign in to comment.
Something went wrong with that request. Please try again.