Cursor line & column darker when bg=dark in macvim color scheme
[MacVim.git] / runtime / colors / macvim.vim
blob7c82b963666cd5823189d850d1e25d146a93174b
1 " MacVim colorscheme
3 " Maintainer:   Bjorn Winckler <bjorn.winckler@gmail.com>
4 " Last Change:  2007 Nov 17
6 " This is the default MacVim color scheme.  It supports both light and dark
7 " backgrounds (see :h 'background').
11 highlight clear
13 " Reset String -> Constant links etc if they were reset
14 if exists("syntax_on")
15   syntax reset
16 endif
18 let colors_name = "macvim"
22 " First list all groups common to both 'light' and 'dark' background.
25 " `:he highlight-groups`
26 hi DiffAdd      guibg=MediumSeaGreen
27 hi Directory    guifg=#1600FF
28 hi ErrorMsg     guibg=Firebrick2 guifg=White
29 hi FoldColumn   guibg=Grey guifg=DarkBlue
30 hi Folded       guibg=#E6E6E6 guifg=DarkBlue
31 hi IncSearch    gui=reverse
32 hi LineNr       guifg=#888888 guibg=#E6E6E6
33 hi ModeMsg      gui=bold
34 hi MoreMsg      gui=bold guifg=SeaGreen4
35 hi NonText      gui=bold guifg=Blue
36 hi Pmenu        guibg=LightSteelBlue1
37 hi PmenuSbar    guibg=Grey
38 hi PmenuSel     guifg=White guibg=SkyBlue4
39 hi PmenuThumb   gui=reverse
40 hi Question     gui=bold guifg=Chartreuse4
41 hi SignColumn   guibg=Grey guifg=DarkBlue
42 hi SpecialKey   guifg=Blue
43 hi SpellBad     guisp=Firebrick2 gui=undercurl
44 hi SpellCap     guisp=Blue gui=undercurl
45 hi SpellLocal   guisp=DarkCyan gui=undercurl
46 hi SpellRare    guisp=Magenta gui=undercurl
47 hi StatusLine   gui=NONE guifg=White guibg=DarkSlateGray
48 hi StatusLineNC gui=NONE guifg=SlateGray guibg=Gray90
49 hi TabLine      gui=underline guibg=LightGrey
50 hi TabLineFill  gui=reverse
51 hi TabLineSel   gui=bold
52 hi Title        gui=bold guifg=DeepSkyBlue3
53 hi VertSplit    gui=NONE guifg=DarkSlateGray guibg=Gray90
54 hi Visual       guibg=MacSelectedTextBackgroundColor
55 hi WarningMsg   guifg=Firebrick2
57 " Syntax items (`:he group-name` -- more groups are available, these are just
58 " the top level syntax items for now).
59 hi Error        gui=NONE guifg=White guibg=Firebrick3
60 hi Identifier   gui=NONE guifg=Aquamarine4 guibg=NONE
61 hi Ignore       gui=NONE guifg=bg guibg=NONE
62 hi PreProc      gui=NONE guifg=DodgerBlue3 guibg=NONE
63 hi Special      gui=NONE guifg=BlueViolet guibg=NONE
64 hi String       gui=NONE guifg=SkyBlue4 guibg=NONE
65 hi Underlined   gui=underline guifg=SteelBlue1
69 " Groups that differ between 'light' and 'dark' background.
72 if &background == "dark"
73   hi Boolean      gui=NONE guifg=DeepPink4 guibg=NONE
74   hi Comment      gui=italic guifg=CadetBlue3
75   hi Constant     gui=NONE guifg=Goldenrod1 guibg=NONE
76   hi Cursor       guibg=LightSlateGrey guifg=bg
77   hi CursorColumn guibg=Gray20
78   hi CursorIM     guibg=LightSlateGrey guifg=bg
79   hi CursorLine   guibg=Gray20
80   hi DiffChange   guibg=MediumPurple4
81   hi DiffDelete   gui=bold guifg=White guibg=SlateBlue
82   hi DiffText     gui=NONE guifg=White guibg=SteelBlue
83   hi MatchParen   guifg=White guibg=Magenta
84   hi Normal       guifg=Grey50 guibg=Grey10
85   hi Search       guibg=Blue4 guifg=NONE
86   hi Statement    gui=bold guifg=Purple1 guibg=NONE
87   hi Todo         gui=NONE guifg=Green4 guibg=DeepSkyBlue1
88   hi Type         gui=bold guifg=Cyan4 guibg=NONE
89   hi WildMenu     guibg=SkyBlue guifg=White
90   hi lCursor      guibg=LightSlateGrey guifg=bg
91 else
92   hi Boolean      gui=NONE guifg=Red3 guibg=NONE
93   hi Comment      gui=italic guifg=Blue2 guibg=NONE
94   hi Constant     gui=NONE guifg=DarkOrange guibg=NONE
95   hi Cursor       guibg=fg guifg=bg
96   hi CursorColumn guibg=#F1F5FA
97   hi CursorIM     guibg=fg guifg=bg
98   hi CursorLine   guibg=#F1F5FA
99   hi DiffChange   guibg=DeepSkyBlue
100   hi DiffDelete   gui=bold guifg=Black guibg=SlateBlue
101   hi DiffText     gui=NONE guibg=Gold
102   hi MatchParen   guifg=White guibg=MediumPurple1
103   hi Normal       gui=NONE guifg=MacTextColor guibg=MacTextBackgroundColor
104   hi Search       guibg=CadetBlue1 guifg=NONE
105   hi Statement    gui=bold guifg=Maroon guibg=NONE
106   hi Todo         gui=NONE guifg=DarkGreen guibg=PaleGreen1
107   hi Type         gui=bold guifg=Green4 guibg=NONE
108   hi WildMenu     guibg=SkyBlue guifg=Black
109   hi lCursor      guibg=fg guifg=bg
110 endif
114 " Change the selection color on focus change (but only if the "macvim"
115 " colorscheme is active).
117 if !exists("s:augroups_defined")
118   au FocusLost * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSecondarySelectedControlColor | endif
119   au FocusGained * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSelectedTextBackgroundColor | endif
121   let s:augroups_defined = 1
122 endif
124 " vim: sw=2