]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/colors/astronaut.vim
8caec734f991197dc8e0c2d18d07f742a1dc04ce
[rbdr/dotfiles] / vim / colors / astronaut.vim
1 " astronaut.vim: a colorscheme
2 " Maintainer: Charles E. Campbell, Jr. <charles.e.campbell.1@gsfc.nasa.gov>
3 " Date: Feb 21, 2006
4 " Version: 7
5 "
6 " Usage:
7 " Put into your <.vimrc> file:
8 " color astronaut
9 "
10 " Optional Modifiers:
11 " let g:astronaut_bold=1 : term, cterm, and gui receive bold modifier
12 " let g:astronaut_dark=1 : dark colors used (otherwise some terminals
13 " make everything bold, which can be all one
14 " color)
15 " let g:astronaut_underline=1 : assume that underlining works on your terminal
16 " let g:astronaut_italic=1 : allows italic to be used in gui
17 " Examples:
18 " iris : let astronaut_dark=1
19 " Linux xterm: no modifiers needed
20 "
21 " GetLatestVimScripts: 122 1 :AutoInstall: astronaut.vim
22
23 set background=dark
24 hi clear
25 if exists( "syntax_on" )
26 syntax reset
27 endif
28 let g:colors_name = "astronaut"
29 let g:loaded_astronaut = "v7"
30
31 " ---------------------------------------------------------------------
32 " Default option values
33 if !exists("g:astronaut_bold")
34 " on some machines, notably SGIs, a bold qualifier means everything is
35 " one color (SGIs: yellow)
36 let g:astronaut_bold= 0
37 endif
38 if !exists("g:astronaut_dark")
39 " this option, if true, means darkcolor (ex. darkred, darkmagenta, etc)
40 " is understood and wanted
41 let g:astronaut_dark= 0
42 endif
43 if !exists("g:astronaut_underline")
44 let g:astronaut_underline= 1
45 endif
46 if !exists("g:astronaut_italic")
47 let g:astronaut_italic= 0
48 endif
49
50 " ---------------------------------------------------------------------
51 " Settings based on options
52 if g:astronaut_bold != 0
53 let s:bold=",bold"
54 else
55 let s:bold=""
56 endif
57
58 if g:astronaut_italic != 0
59 let s:italic= ",italic"
60 else
61 let s:italic= ""
62 endif
63
64 if g:astronaut_dark != 0
65 let s:black = "black"
66 let s:red = "darkred"
67 let s:green = "darkgreen"
68 let s:yellow = "darkyellow"
69 let s:blue = "darkblue"
70 let s:magenta = "darkmagenta"
71 let s:cyan = "darkcyan"
72 let s:white = "white"
73 else
74 let s:black = "black"
75 let s:red = "red"
76 let s:green = "green"
77 let s:yellow = "yellow"
78 let s:blue = "blue"
79 let s:magenta = "magenta"
80 let s:cyan = "cyan"
81 let s:white = "white"
82 endif
83
84 if g:astronaut_underline != 0
85 let s:underline= ",underline"
86 let s:ulbg = ""
87 else
88 let s:underline= "none"
89 if exists("g:astronaut_dark")
90 let s:ulbg = "ctermbg=darkmagenta guibg=magenta4"
91 else
92 let s:ulbg = "ctermbg=magenta guibg=magenta"
93 endif
94 endif
95
96 " ---------------------------------------------------------------------
97 exe "hi Blue start=\e[m\e[34m stop=\e[m\e[32m ctermfg=".s:blue." guifg=blue guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
98 exe "hi Comment start=\e[m\e[37m stop=\e[m\e[32m ctermfg=".s:white." guifg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
99 exe "hi Conceal ctermfg=".s:blue." ctermbg=".s:black." guifg=Blue guibg=Black term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
100 exe "hi Constant start=\e[m\e[33m stop=\e[m\e[32m ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
101 exe "hi Cursor guifg=blue guibg=green term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
102 exe "hi Cyan start=\e[m\e[36m stop=\e[m\e[32m ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
103 exe "hi Debug start=\e[m\e[31m stop=\e[m\e[32m ctermfg=".s:magenta." ctermbg=".s:black." guifg=magenta guibg=black term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
104 exe "hi Delimiter start=\e[m\e[37m stop=\e[m\e[32m ctermfg=".s:white." guifg=white guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
105 exe "hi DiffAdd ctermfg=".s:white." ctermbg=".s:magenta." guifg=White guibg=Magenta term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
106 exe "hi DiffChange ctermfg=".s:yellow." ctermbg=".s:blue." guifg=Yellow guibg=Blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
107 exe "hi DiffDelete ctermfg=".s:white." ctermbg=".s:blue." guifg=White guibg=Blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
108 exe "hi DiffText ctermfg=".s:white." ctermbg=".s:red." guifg=White guibg=Red term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
109 exe "hi Directory start=\e[m\e[37m stop=\e[m\e[32m ctermfg=".s:white." guifg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
110 exe "hi Error start=\e[m\e[37;41m stop=\e[m\e[32m ctermfg=".s:white." ctermbg=".s:red." guifg=white guibg=red term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
111 exe "hi ErrorMsg ctermfg=".s:white." ctermbg=".s:red." guifg=White guibg=Red term=standout".s:bold." cterm=none".s:bold." gui=none".s:bold
112 exe "hi FoldColumn start=\e[m\e[36;40m stop=\e[m\e[32m ctermfg=".s:cyan." ctermbg=".s:black." guifg=Cyan guibg=Brown term=standout".s:bold." cterm=none".s:bold." gui=none".s:bold
113 exe "hi Folded start=\e[m\e[35;40m stop=\e[m\e[32m ctermfg=".s:magenta." ctermbg=".s:black." guifg=magenta guibg=black term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
114 exe "hi Function start=\e[m\e[36m stop=\e[m\e[32m ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
115 exe "hi Green start=\e[m\e[32m stop=\e[m\e[32m ctermfg=".s:green." guifg=green guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
116 exe "hi Identifier start=\e[m\e[45m stop=\e[m\e[32m ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
117 exe "hi Ignore ctermfg=".s:black ." guifg=bg term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
118 exe "hi IncSearch start=\e[m\e[30;42m stop=\e[m\e[32m ctermfg=".s:black ." ctermbg=".s:green." guifg=black guibg=green term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
119 exe "hi LineNr ctermfg=".s:yellow." ".s:ulbg." guifg=Yellow term=none".s:underline.s:bold." cterm=none".s:bold." gui=none".s:bold
120 exe "hi Magenta start=\e[m\e[35m stop=\e[m\e[32m ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
121 exe "hi Menu guifg=black guibg=gray75 term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
122 exe "hi ModeMsg ctermfg=".s:green." guifg=SeaGreen term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
123 exe "hi MoreMsg ctermfg=".s:green." guifg=SeaGreen term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
124 exe "hi NonText ctermfg=".s:blue." guifg=Blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
125 exe "hi Normal start=\e[m\e[32m stop=\e[m\e[32m ctermfg=".s:green." guifg=green guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
126 exe "hi PreProc start=\e[m\e[37;44m stop=\e[m\e[32m ctermfg=".s:white." ctermbg=".s:blue." guifg=white guibg=blue3 term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
127 exe "hi Question start=\e[m\e[33m stop=\e[m\e[32m ctermfg=".s:yellow." guifg=yellow term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
128 exe "hi Red start=\e[m\e[31m stop=\e[m\e[32m ctermfg=".s:red." guifg=red guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
129 exe "hi Scrollbar guifg=gray80 guibg=gray70 term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
130 exe "hi Search start=\e[m\e[33;44m stop=\e[m\e[32m ctermfg=".s:yellow." ctermbg=".s:blue." guifg=yellow guibg=blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
131 exe "hi Special start=\e[m\e[32;44m stop=\e[m\e[32m ctermfg=".s:green." ctermbg=".s:blue." guifg=green guibg=blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
132 exe "hi SpecialKey start=\e[m\e[30;45m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:magenta." guifg=black guibg=magenta term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
133 exe "hi Statement start=\e[m\e[36m stop=\e[m\e[32m ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
134 exe "hi StatusLine start=\e[m\e[30;46m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:cyan." guifg=black guibg=cyan term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
135 exe "hi StatusLineNC start=\e[m\e[30;42m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:green." guifg=black guibg=green term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
136 exe "hi String start=\e[m\e[33m stop=\e[m\e[32m ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
137 exe "hi Subtitle start=\e[m\e[35m stop=\e[m\e[32m ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
138 if v:version >= 700
139 exe "hi TabLine start=\e[m\e[30;44m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:blue." guifg=black guibg=blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold.s:underline.s:italic
140 exe "hi TabLineSel start=\e[m\e[37;44m stop=\e[m\e[32m ctermfg=".s:green." ctermbg=".s:blue." guifg=green guibg=blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold.s:underline.s:italic
141 exe "hi TabLineFill start=\e[m\e[34;44m stop=\e[m\e[32m ctermfg=".s:blue." ctermbg=".s:blue." guifg=blue guibg=blue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
142 endif
143 exe "hi Tags start=\e[m\e[33;44m stop=\e[m\e[32m ctermfg=".s:yellow." ctermbg=".s:blue." guifg=yellow guibg=blue3 term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
144 exe "hi Title start=\e[m\e[37m stop=\e[m\e[32m ctermfg=".s:white." guifg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
145 exe "hi Todo start=\e[m\e[37;45m stop=\e[m\e[32m ctermfg=".s:white." ctermbg=".s:magenta." guifg=white guibg=magenta term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
146 exe "hi Type start=\e[m\e[4;32m stop=\e[m\e[32m ctermfg=".s:green." ".s:ulbg." guifg=seagreen1 term=none".s:underline.s:bold." cterm=none".s:bold.s:underline." gui=none".s:bold.s:underline
147 exe "hi Underlined ctermfg=".s:green." ".s:ulbg." guifg=green term=none".s:underline.s:bold." cterm=none".s:bold.s:underline." gui=none".s:bold.s:underline
148 exe "hi Unique start=\e[m\e[34;47m stop=\e[m\e[32m ctermfg=".s:blue." ctermbg=".s:white." guifg=blue3 guibg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
149 exe "hi AltUnique start=\e[m\e[35;47m stop=\e[m\e[32m ctermfg=".s:magenta." ctermbg=".s:white." guifg=magenta guibg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
150 exe "hi AltAltUnique start=\e[m\e[30;47m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:white." guifg=black guibg=white term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
151 exe "hi VertSplit start=\e[m\e[30;42m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:green." guifg=black guibg=green term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
152 exe "hi Visual start=\e[m\e[40;32m stop=\e[m\e[32m ctermfg=black ctermbg=green guifg=Grey guibg=fg term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
153 exe "hi VisualNOS ".s:ulbg." term=none".s:underline.s:bold." cterm=none".s:bold.s:underline." gui=none".s:bold.s:underline
154 exe "hi WarningMsg start=\e[m\e[30;43m stop=\e[m\e[32m ctermfg=".s:black." ctermbg=".s:yellow." guifg=black guibg=yellow term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
155 exe "hi White start=\e[m\e[37m stop=\e[m\e[32m ctermfg=".s:white." guifg=white guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
156 exe "hi WildMenu ctermfg=".s:black." ctermbg=".s:yellow." guifg=Black guibg=Yellow term=standout".s:bold." cterm=none".s:bold." gui=none".s:bold
157 exe "hi Yellow start=\e[m\e[33m stop=\e[m\e[32m ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
158 exe "hi lCursor guifg=bg guibg=fg term=none".s:bold." cterm=none".s:bold." gui=none".s:bold
159 exe "hi AltConstant start=\e[m\e[33;40m stop=\e[m\e[32m ctermfg=".s:yellow." ctermbg=".s:black." guifg=yellow guibg=black term=none".s:bold." cterm=none".s:bold." gui=none".s:bold.s:italic
160 exe "hi AltFunction start=\e[m\e[32;40m stop=\e[m\e[32m ctermfg=".s:green." ctermbg=".s:black." guifg=green guibg=black term=none".s:bold." cterm=none".s:bold." gui=none".s:bold.s:italic
161 exe "hi AltType start=\e[m\e[4;32;40m stop=\e[m\e[32m ctermfg=".s:green." ctermbg=".s:black." guifg=seagreen1 guibg=black term=none".s:underline.s:bold." cterm=none".s:bold.s:underline." gui=none".s:bold.s:underline.s:italic
162 exe "hi User1 ctermfg=".s:white." ctermbg=".s:blue." guifg=white guibg=blue"
163 exe "hi User2 ctermfg=".s:cyan." ctermbg=".s:blue." guifg=cyan guibg=blue"
164 " vim: nowrap