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').
13 " Reset String -> Constant links etc if they were reset
14 if exists("syntax_on")
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
33 hi MoreMsg gui=bold guifg=SeaGreen4
34 hi NonText gui=bold guifg=Blue
35 hi Pmenu guibg=LightSteelBlue1
36 hi PmenuSbar guibg=Grey
37 hi PmenuSel guifg=White guibg=SkyBlue4
38 hi PmenuThumb gui=reverse
39 hi Question gui=bold guifg=Chartreuse4
40 hi SignColumn guibg=Grey guifg=DarkBlue
41 hi SpecialKey guifg=Blue
42 hi SpellBad guisp=Firebrick2 gui=undercurl
43 hi SpellCap guisp=Blue gui=undercurl
44 hi SpellLocal guisp=DarkCyan gui=undercurl
45 hi SpellRare guisp=Magenta gui=undercurl
46 hi StatusLine gui=NONE guifg=White guibg=DarkSlateGray
47 hi StatusLineNC gui=NONE guifg=SlateGray guibg=Gray90
48 hi TabLine gui=underline guibg=LightGrey
49 hi TabLineFill gui=reverse
50 hi TabLineSel gui=bold
51 hi Title gui=bold guifg=DeepSkyBlue3
52 hi VertSplit gui=NONE guifg=DarkSlateGray guibg=Gray90
53 hi Visual guibg=MacSelectedTextBackgroundColor
54 hi WarningMsg guifg=Firebrick2
56 " Syntax items (`:he group-name` -- more groups are available, these are just
57 " the top level syntax items for now).
58 hi Error gui=NONE guifg=White guibg=Firebrick3
59 hi Identifier gui=NONE guifg=Aquamarine4 guibg=NONE
60 hi Ignore gui=NONE guifg=bg guibg=NONE
61 hi PreProc gui=NONE guifg=DodgerBlue3 guibg=NONE
62 hi Special gui=NONE guifg=BlueViolet guibg=NONE
63 hi String gui=NONE guifg=SkyBlue4 guibg=NONE
64 hi Underlined gui=underline guifg=SteelBlue1
68 " Groups that differ between 'light' and 'dark' background.
71 if &background == "dark"
72 hi Boolean gui=NONE guifg=DeepPink4 guibg=NONE
73 hi Comment gui=italic guifg=CadetBlue3
74 hi Constant gui=NONE guifg=Goldenrod1 guibg=NONE
75 hi Cursor guibg=LightGoldenrod guifg=bg
76 hi CursorColumn guibg=Gray20
77 hi CursorIM guibg=LightSlateGrey guifg=bg
78 hi CursorLine guibg=Gray20
79 hi DiffChange guibg=MediumPurple4
80 hi DiffDelete gui=bold guifg=White guibg=SlateBlue
81 hi DiffText gui=NONE guifg=White guibg=SteelBlue
82 hi LineNr guifg=#350A5B guibg=Grey5
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
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 LineNr guifg=#888888 guibg=#E6E6E6
103 hi MatchParen guifg=White guibg=MediumPurple1
104 hi Normal gui=NONE guifg=MacTextColor guibg=MacTextBackgroundColor
105 hi Search guibg=CadetBlue1 guifg=NONE
106 hi Statement gui=bold guifg=Maroon guibg=NONE
107 hi Todo gui=NONE guifg=DarkGreen guibg=PaleGreen1
108 hi Type gui=bold guifg=Green4 guibg=NONE
109 hi WildMenu guibg=SkyBlue guifg=Black
110 hi lCursor guibg=fg guifg=bg
115 " Change the selection color on focus change (but only if the "macvim"
116 " colorscheme is active).
118 if !exists("s:augroups_defined")
119 au FocusLost * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSecondarySelectedControlColor | endif
120 au FocusGained * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSelectedTextBackgroundColor | endif
122 let s:augroups_defined = 1