]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/colors/leo.vim
Change the backup dir
[rbdr/dotfiles] / vim / colors / leo.vim
1 " Vim color file
2 " Maintainer: Lorenzo Leonini <vim-theme[a]leonini[.]net>
3 " Last Change: 2009 Feb 23
4 " URL: http://www.leonini.net
5
6 " Description:
7 " A contrasted theme for long programming sessions.
8 " Specially for 256-colors term (xterm, Eterm, konsole, gnome-terminal, ...)
9 " Very good with Ruby, C, Lua, PHP, HTML, shell...
10 " (but no using language specific settings)
11
12 " Note:
13 " If your term report 8 colors (but is 256 capable), put 'set t_Co=256'
14 " in your .vimrc
15
16 " Tips:
17 " :verbose hi StatusLine
18 " Color numbers (0-255) see:
19 " http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
20 " :so $VIMRUNTIME/syntax/hitest.vim
21
22 " 0.81 => 0.82
23 " menu backgrounf lighter
24 " LineNr
25 " gui comments in italic
26 "
27 " 0.8 => 0.81
28 " invisible char
29 " line number
30 " status bar
31 " add MatchParen
32 " add Underlined
33 "
34 " 0.6 => 0.8
35 " GUI fixed, color < 16 fixed
36 " comments from 247 => 249
37 " main color 255 => 254
38 " boolean and numbers more visible
39 "
40 " 0.5 => 0.6
41 " Synchro with GUI
42
43 " 0.3 => 0.5
44 " Ligther vertical separation
45 " Better diff
46 " Better pmenu
47 " Uniformisation between status bar, tabs and pmenu
48 " Added spell hl
49 " Change search highlight (I don't use it...)
50 " Folding done
51 " All in 256 code
52
53 if !has("gui_running")
54 if &t_Co != 256
55 echomsg "err: Please use a 256-colors terminal (so that t_Co=256 could be set)."
56 echomsg ""
57 finish
58 end
59 endif
60
61 let g:colors_name = "leo256"
62
63 set background=dark
64 if v:version > 580
65 highlight clear
66 if exists("syntax_on")
67 syntax reset
68 endif
69 endif
70
71 " Normal should come first
72 hi Normal cterm=none ctermfg=255 ctermbg=16 guibg=#000000 guifg=#ffffff
73 hi CursorLine cterm=none ctermbg=16 guibg=#101010
74 hi DiffAdd cterm=none ctermbg=235 guibg=#262626
75 hi DiffChange cterm=none ctermbg=235 guibg=#262626
76 hi DiffDelete cterm=none ctermfg=238 ctermbg=244 guibg=#808080 guifg=#444444
77 hi DiffText cterm=bold ctermfg=255 ctermbg=196 guifg=#ffffff
78 hi Directory cterm=none ctermfg=196
79 hi ErrorMsg cterm=none ctermfg=255 ctermbg=160 guifg=#ffffff
80 hi FoldColumn cterm=none ctermfg=110 ctermbg=16 guibg=#000000
81 hi SignColumn cterm=none ctermbg=16 guibg=#000000
82 hi Folded cterm=none ctermfg=16 ctermbg=110 guifg=#000000 guibg=#87afd7
83 hi IncSearch cterm=reverse
84 hi LineNr cterm=none ctermfg=228 ctermbg=16 guifg=#ffff87 guibg=#000000
85 hi ModeMsg cterm=bold
86 hi MoreMsg cterm=none ctermfg=40
87 hi NonText cterm=none ctermfg=27
88 hi Question cterm=none ctermfg=40
89 hi Search cterm=none ctermfg=16 ctermbg=248 guifg=#000000 guibg=#a8a8a8
90 hi SpecialKey cterm=none ctermfg=245 ctermbg=233 guifg=#8a8a8a guibg=#121212
91 hi StatusLine cterm=bold ctermfg=255 ctermbg=19 guifg=#0000ff guibg=#ffffff
92 hi StatusLineNC cterm=none ctermfg=252 ctermbg=17 guibg=#d0d0d0 guifg=#00005f
93 hi Title cterm=none ctermfg=33
94 hi VertSplit cterm=none ctermfg=254 ctermbg=16 guibg=#EEEEEE guifg=#000000
95 hi Visual cterm=reverse ctermbg=none
96 hi VisualNOS cterm=underline,bold
97 hi WarningMsg cterm=none ctermfg=255 guifg=#ffffff
98 hi WildMenu cterm=none ctermfg=16 ctermbg=11
99
100 if v:version >= 700
101 " light
102 "hi Pmenu cterm=none ctermfg=16 ctermbg=252
103 "hi PmenuSel cterm=none ctermfg=255 ctermbg=21
104 "hi PmenuSbar cterm=none ctermfg=240 ctermbg=240
105 "hi PmenuThumb cterm=none ctermfg=255 ctermbg=255
106
107 "dark
108 hi Pmenu cterm=none ctermfg=255 ctermbg=237 guibg=#262626 guifg=#ffffff
109 hi PmenuSel cterm=none ctermfg=255 ctermbg=21 guibg=#0000ff guifg=#ffffff
110 hi PmenuSbar cterm=none ctermfg=240 ctermbg=240 guibg=#444444
111 hi PmenuThumb cterm=none ctermfg=255 ctermbg=255 guifg=#ffffff
112
113 hi SpellBad cterm=none ctermfg=16 ctermbg=196
114 hi SpellCap cterm=none ctermfg=16 ctermbg=196
115 hi SpellLocal cterm=none ctermfg=16 ctermbg=196
116 hi SpellRare cterm=none ctermfg=16 ctermbg=196
117
118 " No need for GUI colors :)
119 hi TabLine cterm=none ctermfg=252 ctermbg=17
120 hi TabLineSel cterm=none ctermfg=255 ctermbg=21
121 hi TabLineFill cterm=none ctermfg=17 ctermbg=17
122
123 hi MatchParen cterm=none ctermfg=16 ctermbg=226 guibg=#ffff00 guifg=#000000
124 endif
125
126 " syntax highlighting
127 hi Boolean cterm=none ctermfg=171 guifg=#d75fff
128 hi Character cterm=none ctermfg=184
129 hi Comment cterm=none ctermfg=248 gui=italic guifg=#a8a8a8
130 hi Constant cterm=none ctermfg=226 guifg=#ffff00
131 hi Conditional cterm=none ctermfg=154 guifg=#afff00
132 hi Define cterm=bold ctermfg=27 gui=bold guifg=#005fff
133 hi Delimiter cterm=none ctermfg=196 guifg=#ff0000
134 hi Exception cterm=bold ctermfg=226 gui=bold guifg=#ffff00
135 hi Error cterm=none ctermfg=255 ctermbg=9 guifg=#ffffff
136 hi Keyword cterm=none ctermfg=159 guifg=#afffff
137 hi Function cterm=none ctermfg=196 guifg=#ff0000
138 hi Identifier cterm=none ctermfg=33 guifg=#0087ff
139 hi Number cterm=none ctermfg=209 guifg=#ff875f
140 hi Operator cterm=none ctermfg=226 guifg=#ffff00
141 hi PreProc cterm=none ctermfg=202 guifg=#ff5f00
142 hi Special cterm=none ctermfg=206 ctermbg=234 guifg=#ff5fd7 guibg=#1c1c1c
143 hi Statement cterm=none ctermfg=40 gui=none guifg=#00d700
144 hi String cterm=none ctermfg=224 ctermbg=234 guifg=#ffd7d7 guibg=#1c1c1c
145 hi Todo cterm=none ctermfg=16 ctermbg=226 guifg=#000000 guibg=#ffff00
146 hi Type cterm=none ctermfg=75 gui=none guifg=#5fafff
147 hi Underlined cterm=underline ctermfg=39 gui=underline guifg=#00afff
148
149 " ADDITIONNAL
150 hi Repeat cterm=none ctermfg=142 guifg=#afaf00