Skip to content

Commit ea03974

Browse files
tickxxvim-scripts
authored andcommitted
Version 1.0: Initial upload
0 parents  commit ea03974

File tree

2 files changed

+206
-0
lines changed

2 files changed

+206
-0
lines changed

README

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1987
2+
3+
This colour scheme was created primarily because there seems to be few
4+
(if any) that take the trouble to appear the same in gui and cterm environments.
5+
6+
Secondly, most cterm colour schemes seem to use excessively strong colours
7+
in psychotic combinations compared to the gui schemes. This scheme
8+
strives to follow the guidelines described in "Color Theory for Developers"
9+
http://www.devsource.com/article2/0,1895,2069736,00.asp
10+
for a softer appearance like more modern gui schemes.
11+
12+
Finally, some terminals render bold and italic fonts badly, so those attributes have been avoided.
13+
14+
Features:
15+
- Optimized for 256 colour palette, then converted to gui.
16+
- Identical colour rendition in both gui and cterm environments.
17+
- Low-contrast colours keep it "REAL", avoiding psychotic edit sessions.
18+
- Avoids use of terminal attributes {bold italic etc}, with the
19+
exception of 'underline' used with the 'Underlined' group-name.
20+
21+
Testing:
22+
Tested with the following programs (256 colour versions), which render identically to gvim:-
23+
gnu-screen (compiled with --enable-colors256 option)
24+
xterm
25+
gnome-terminal
26+
27+
konsole (version 1.6.5) renders slightly darker colours for some unknown reason.
28+
See KDE Bug 138237: Color cube incorrect for xterm-256color mode (patch)
29+

colors/khaki.vim

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
" Vim color file: khaki.vim
2+
" Version: 1.0
3+
" Author: Frank Baruch <ez2b4got10 AT gmail DOT com>
4+
" License: GPL
5+
" Compatibility: Vim 5.7 onwards.
6+
"------------------------------------------------------------------------------
7+
"
8+
" A light colorscheme optimized for gui and 256 color terminals.
9+
"
10+
" Features:
11+
" - Optimized for 256 color palette, then converted to gui.
12+
" - Identical colour rendition in both gui and cterm environments.
13+
" - Low-contrast minimizes eye-strain during long edit sessions.
14+
" - Avoids use of terminal attributes {bold italic etc}, with the
15+
" exception of 'underline' used with the 'Underlined' group-name.
16+
"
17+
" Installation:
18+
" - Copy khaki.vim to ~/.vim/colors/
19+
" - Add following lines to ~/.vimrc
20+
" if !has("gui_running")
21+
" set t_Co=256
22+
" endif
23+
" colorscheme khaki
24+
"
25+
" Version History:
26+
" 1.0: 2007/08/10 Initial release.
27+
"
28+
" To Do:
29+
" Add any missing standard colorscheme functionality.
30+
"
31+
" Feedback:
32+
" Please email the author any comments and suggestions for improvement.
33+
"
34+
"------------------------------------------------------------------------------
35+
36+
if &t_Co != 256 && !has("gui_running")
37+
echomsg ""
38+
echomsg "write 'set t_Co=256' in your .vimrc or this file won't load"
39+
echomsg ""
40+
finish
41+
endif
42+
43+
set background=light
44+
hi clear
45+
if exists("syntax_on")
46+
syntax reset
47+
endif
48+
49+
let g:colors_name = "khaki"
50+
51+
if !has("gui_running")
52+
hi Normal cterm=NONE ctermfg=58 ctermbg=187
53+
hi Cursor cterm=NONE ctermfg=230 ctermbg=58
54+
hi CursorLine cterm=NONE ctermfg=NONE ctermbg=186
55+
hi CursorColumn cterm=NONE ctermfg=NONE ctermbg=185
56+
hi Incsearch cterm=NONE ctermfg=58 ctermbg=174
57+
hi Search cterm=NONE ctermfg=58 ctermbg=174
58+
hi ErrorMsg cterm=NONE ctermfg=58 ctermbg=197
59+
hi WarningMsg cterm=NONE ctermfg=58 ctermbg=226
60+
hi ModeMsg cterm=NONE ctermfg=58 ctermbg=192
61+
hi MoreMsg cterm=NONE ctermfg=58 ctermbg=154
62+
hi Question cterm=NONE ctermfg=27 ctermbg=NONE
63+
hi StatusLine cterm=NONE ctermfg=187 ctermbg=30
64+
hi StatusLineNC cterm=NONE ctermfg=58 ctermbg=101
65+
hi User1 cterm=NONE ctermfg=28 ctermbg=NONE
66+
hi User2 cterm=NONE ctermfg=39 ctermbg=NONE
67+
hi VertSplit cterm=NONE ctermfg=144 ctermbg=144
68+
hi WildMenu cterm=NONE ctermfg=58 ctermbg=144
69+
hi DiffText cterm=NONE ctermfg=58 ctermbg=190
70+
hi DiffChange cterm=NONE ctermfg=58 ctermbg=83
71+
hi DiffDelete cterm=NONE ctermfg=187 ctermbg=124
72+
hi DiffAdd cterm=NONE ctermfg=187 ctermbg=21
73+
hi Folded cterm=NONE ctermfg=19 ctermbg=115
74+
hi FoldedColumn cterm=NONE ctermfg=39 ctermbg=190
75+
hi FoldColumn cterm=NONE ctermfg=19 ctermbg=115
76+
hi Directory cterm=NONE ctermfg=28 ctermbg=NONE
77+
hi LineNr cterm=NONE ctermfg=58 ctermbg=144
78+
hi NonText cterm=NONE ctermfg=58 ctermbg=144
79+
hi SpecialKey cterm=NONE ctermfg=130 ctermbg=NONE
80+
hi Title cterm=NONE ctermfg=19 ctermbg=NONE
81+
hi Visual cterm=NONE ctermfg=58 ctermbg=192
82+
hi Comment cterm=NONE ctermfg=101 ctermbg=NONE
83+
hi Constant cterm=NONE ctermfg=131 ctermbg=NONE
84+
hi String cterm=NONE ctermfg=23 ctermbg=NONE
85+
hi Error cterm=NONE ctermfg=197 ctermbg=NONE
86+
hi Identifier cterm=NONE ctermfg=24 ctermbg=NONE
87+
hi Ignore cterm=NONE ctermfg=187 ctermbg=NONE
88+
hi Number cterm=NONE ctermfg=22 ctermbg=NONE
89+
hi PreProc cterm=NONE ctermfg=52 ctermbg=NONE
90+
hi Special cterm=NONE ctermfg=22 ctermbg=NONE
91+
hi SpecialChar cterm=NONE ctermfg=88 ctermbg=NONE
92+
hi Statement cterm=NONE ctermfg=89 ctermbg=NONE
93+
hi Todo cterm=NONE ctermfg=58 ctermbg=156
94+
hi Type cterm=NONE ctermfg=53 ctermbg=NONE
95+
hi Underlined cterm=UNDERLINE ctermfg=NONE ctermbg=NONE
96+
hi TaglistTagName cterm=NONE ctermfg=29 ctermbg=118
97+
endif
98+
99+
if has("gui_running")
100+
hi Normal gui=NONE guifg=#5f5f00 guibg=#d7d7af
101+
hi Cursor gui=NONE guifg=#ffffd7 guibg=#5f5f00
102+
hi CursorLine gui=NONE guifg=NONE guibg=#d7d78f
103+
hi CursorColumn gui=NONE guifg=NONE guibg=#d7d75f
104+
hi Incsearch gui=NONE guifg=#5f5f00 guibg=#d78f8f
105+
hi Search gui=NONE guifg=#5f5f00 guibg=#d78f8f
106+
hi ErrorMsg gui=NONE guifg=#5f5f00 guibg=#ff005f
107+
hi WarningMsg gui=NONE guifg=#5f5f00 guibg=#ffff00
108+
hi ModeMsg gui=NONE guifg=#5f5f00 guibg=#d7ff8f
109+
hi MoreMsg gui=NONE guifg=#5f5f00 guibg=#afff00
110+
hi Question gui=NONE guifg=#005fff guibg=NONE
111+
hi StatusLine gui=NONE guifg=#d7d7af guibg=#008f8f
112+
hi StatusLineNC gui=NONE guifg=#5f5f00 guibg=#8f8f5f
113+
hi User1 gui=NONE guifg=#008f00 guibg=NONE
114+
hi User2 gui=NONE guifg=#00afff guibg=NONE
115+
hi VertSplit gui=NONE guifg=#afaf8f guibg=#afaf8f
116+
hi WildMenu gui=NONE guifg=#5f5f00 guibg=#afaf8f
117+
hi DiffText gui=NONE guifg=#5f5f00 guibg=#d7ff00
118+
hi DiffChange gui=NONE guifg=#5f5f00 guibg=#5fff5f
119+
hi DiffDelete gui=NONE guifg=#d7d7af guibg=#af0000
120+
hi DiffAdd gui=NONE guifg=#d7d7af guibg=#0000ff
121+
hi Folded gui=NONE guifg=#0000af guibg=#8fd7af
122+
hi FoldedColumn gui=NONE guifg=#00afff guibg=#d7ff00
123+
hi FoldColumn gui=NONE guifg=#0000af guibg=#8fd7af
124+
hi Directory gui=NONE guifg=#008f00 guibg=NONE
125+
hi LineNr gui=NONE guifg=#5f5f00 guibg=#afaf8f
126+
hi NonText gui=NONE guifg=#5f5f00 guibg=#afaf8f
127+
hi SpecialKey gui=NONE guifg=#af5f00 guibg=NONE
128+
hi Title gui=NONE guifg=#0000af guibg=NONE
129+
hi Visual gui=NONE guifg=#5f5f00 guibg=#d7ff8f
130+
hi Comment gui=NONE guifg=#8f8f5f guibg=NONE
131+
hi Constant gui=NONE guifg=#af5f5f guibg=NONE
132+
hi String gui=NONE guifg=#005f5f guibg=NONE
133+
hi Error gui=NONE guifg=#ff005f guibg=NONE
134+
hi Identifier gui=NONE guifg=#005f8f guibg=NONE
135+
hi Ignore gui=NONE guifg=#d7d7af guibg=NONE
136+
hi Number gui=NONE guifg=#005f00 guibg=NONE
137+
hi PreProc gui=NONE guifg=#5f0000 guibg=NONE
138+
hi Special gui=NONE guifg=#005f00 guibg=NONE
139+
hi SpecialChar gui=NONE guifg=#8f0000 guibg=NONE
140+
hi Statement gui=NONE guifg=#8f005f guibg=NONE
141+
hi Todo gui=NONE guifg=#5f5f00 guibg=#afff8f
142+
hi Type gui=NONE guifg=#5f005f guibg=NONE
143+
hi Underlined gui=UNDERLINE guifg=NONE guibg=NONE
144+
hi TaglistTagName gui=NONE guifg=#008f5f guibg=#8fff00
145+
endif
146+
147+
if !has("gui_running") && v:version >= 700
148+
hi Pmenu cterm=NONE ctermfg=229 ctermbg=29
149+
hi PmenuSel cterm=NONE ctermfg=59 ctermbg=226
150+
hi PmenuSbar cterm=NONE ctermfg=58 ctermbg=119
151+
hi PmenuThumb cterm=NONE ctermfg=58 ctermbg=226
152+
hi SpellBad cterm=NONE ctermfg=NONE ctermbg=192
153+
hi SpellRare cterm=NONE ctermfg=NONE ctermbg=228
154+
hi SpellLocal cterm=NONE ctermfg=NONE ctermbg=224
155+
hi SpellCap cterm=NONE ctermfg=NONE ctermbg=145
156+
hi MatchParen cterm=NONE ctermfg=187 ctermbg=22
157+
hi TabLine cterm=NONE ctermfg=187 ctermbg=22
158+
hi TabLineSel cterm=NONE ctermfg=187 ctermbg=30
159+
hi TabLineFill cterm=NONE ctermfg=187 ctermbg=58
160+
endif
161+
162+
if has("gui_running") && v:version >= 700
163+
hi Pmenu gui=NONE guifg=#ffffaf guibg=#008f5f
164+
hi PmenuSel gui=NONE guifg=#5f5f5f guibg=#ffff00
165+
hi PmenuSbar gui=NONE guifg=#5f5f00 guibg=#8fff5f
166+
hi PmenuThumb gui=NONE guifg=#5f5f00 guibg=#ffff00
167+
hi SpellBad gui=NONE guifg=NONE guibg=#d7ff8f
168+
hi SpellRare gui=NONE guifg=NONE guibg=#ffff8f
169+
hi SpellLocal gui=NONE guifg=NONE guibg=#ffd7d7
170+
hi SpellCap gui=NONE guifg=NONE guibg=#afafaf
171+
hi MatchParen gui=NONE guifg=#d7d7af guibg=#005f00
172+
hi TabLine gui=NONE guifg=#d7d7af guibg=#005f00
173+
hi TabLineSel gui=NONE guifg=#d7d7af guibg=#008f8f
174+
hi TabLineFill gui=NONE guifg=#d7d7af guibg=#5f5f00
175+
endif
176+
177+
" vim: set sts=4 et tw=0 ft=vim:

0 commit comments

Comments
 (0)