3 " Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com>
4 " Last Change: 2008 May 9
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
54 hi Visual guibg=MacSelectedTextBackgroundColor
56 hi Visual guibg=#72F7FF
58 hi WarningMsg guifg=Firebrick2
60 " Syntax items (`:he group-name` -- more groups are available, these are just
61 " the top level syntax items for now).
62 hi Error gui=NONE guifg=White guibg=Firebrick3
63 hi Identifier gui=NONE guifg=Aquamarine4 guibg=NONE
64 hi Ignore gui=NONE guifg=bg guibg=NONE
65 hi PreProc gui=NONE guifg=DodgerBlue3 guibg=NONE
66 hi Special gui=NONE guifg=BlueViolet guibg=NONE
67 hi String gui=NONE guifg=SkyBlue4 guibg=NONE
68 hi Underlined gui=underline guifg=SteelBlue1
72 " Groups that differ between 'light' and 'dark' background.
75 if &background == "dark"
76 hi Boolean gui=NONE guifg=DeepPink4 guibg=NONE
77 hi Comment gui=italic guifg=CadetBlue3
78 hi Constant gui=NONE guifg=Goldenrod1 guibg=NONE
79 hi Cursor guibg=LightGoldenrod guifg=bg
80 hi CursorColumn guibg=Gray20
81 hi CursorIM guibg=LightSlateGrey guifg=bg
82 hi CursorLine guibg=Gray20
83 hi DiffChange guibg=MediumPurple4
84 hi DiffDelete gui=bold guifg=White guibg=SlateBlue
85 hi DiffText gui=NONE guifg=White guibg=SteelBlue
86 hi LineNr guifg=#552A7B guibg=Grey5
87 hi MatchParen guifg=White guibg=Magenta
88 hi Normal guifg=Grey50 guibg=Grey10
89 hi Search guibg=Blue4 guifg=NONE
90 hi Statement gui=bold guifg=Purple1 guibg=NONE
91 hi Todo gui=NONE guifg=Green4 guibg=DeepSkyBlue1
92 hi Type gui=bold guifg=Cyan4 guibg=NONE
93 hi WildMenu guibg=SkyBlue guifg=White
94 hi lCursor guibg=LightSlateGrey guifg=bg
96 hi Boolean gui=NONE guifg=Red3 guibg=NONE
97 hi Comment gui=italic guifg=Blue2 guibg=NONE
98 hi Constant gui=NONE guifg=DarkOrange guibg=NONE
99 hi Cursor guibg=fg guifg=bg
100 hi CursorColumn guibg=#F1F5FA
101 hi CursorIM guibg=fg guifg=bg
102 hi CursorLine guibg=#F1F5FA
103 hi DiffChange guibg=DeepSkyBlue
104 hi DiffDelete gui=bold guifg=Black guibg=SlateBlue
105 hi DiffText gui=NONE guibg=Gold
106 hi LineNr guifg=#888888 guibg=#E6E6E6
107 hi MatchParen guifg=White guibg=MediumPurple1
109 hi Normal gui=NONE guifg=MacTextColor guibg=MacTextBackgroundColor
111 hi Normal gui=NONE guifg=Black guibg=White
113 hi Search guibg=CadetBlue1 guifg=NONE
114 hi Statement gui=bold guifg=Maroon guibg=NONE
115 hi Todo gui=NONE guifg=DarkGreen guibg=PaleGreen1
116 hi Type gui=bold guifg=Green4 guibg=NONE
117 hi WildMenu guibg=SkyBlue guifg=Black
118 hi lCursor guibg=fg guifg=bg
123 " Change the selection color on focus change (but only if the "macvim"
124 " colorscheme is active).
126 if has("gui_macvim") && !exists("s:augroups_defined")
127 au FocusLost * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSecondarySelectedControlColor | endif
128 au FocusGained * if exists("colors_name") && colors_name == "macvim" | hi Visual guibg=MacSelectedTextBackgroundColor | endif
130 let s:augroups_defined = 1