zenburn.vim (23342B)
1 " Vim color file 2 " Maintainer: Jani Nurminen <slinky@iki.fi> 3 " Version: v 2.22 4 " URL: http://slinky.imukuppi.org/zenburnpage/ 5 " License: GNU GPL <http://www.gnu.org/licenses/gpl.html> 6 " 7 " Nothing too fancy, just some alien fruit salad to keep you in the zone. 8 " This syntax file was designed to be used with dark environments and 9 " low light situations. Of course, if it works during a daybright office, go 10 " ahead :) 11 " 12 " Owes heavily to other Vim color files! With special mentions 13 " to "BlackDust", "Camo" and "Desert". 14 " 15 " To install, copy to ~/.vim/colors directory. 16 " 17 " Alternatively, you can use Vimball installation: 18 " vim zenburn.vba 19 " :so % 20 " :q 21 " 22 " For details, see :help vimball 23 " 24 " After installation, use it with :colorscheme zenburn. 25 " See also :help syntax 26 " 27 " Credits: 28 " - Jani Nurminen - original Zenburn, maintainer 29 " - Steve Hall & Cream posse - higher-contrast Visual selection 30 " - Kurt Maier - 256 color console coloring, low and high contrast toggle, 31 " bug fixing 32 " - Charlie - spotted too bright StatusLine in non-high contrast mode 33 " - Pablo Castellazzi - CursorLine fix for 256 color mode 34 " - Tim Smith - force dark background 35 " - John Gabriele - spotted bad Ignore-group handling 36 " - Zac Thompson - spotted invisible NonText in low contrast mode 37 " - Christophe-Marie Duquesne - suggested making a Vimball, 38 " suggested support for ctags_highlighting.vim 39 " - Andrew Wagner - noted the CursorColumn bug (guifg was unintentionally set), 40 " unify CursorColumn colour 41 " - Martin Langasek - clarify the license, whitespace fixes 42 " - Marcin Szamotulski - support autocomplete for Zenburn configuration 43 " parameters 44 " - Clayton Parker (claytron) - Convinced by Kurt Maier to use Zenburn. Point 45 " out issues with LineNr, fix directory styles, and their usage in MacVim. 46 " - Paweł Piekarski - Spotted bad FoldColumn and TabLine. Made better 47 " FoldColumn colors, fixed TabLine colors. 48 " - Jim - Fix for missing Include group for terminal 49 " - Peter (Sakartu) - ColorColumn fixes 50 " - Please see git log for the others not listed here 51 " 52 " CONFIGURABLE PARAMETERS: 53 " 54 " You can use the default (don't set any parameters), or you can 55 " set some parameters to tweak the Zenburn colours. 56 " 57 " To use them, put them into your .vimrc file before loading the color scheme, 58 " example: 59 " let g:zenburn_high_Contrast=1 60 " colors zenburn 61 " 62 " You can also do ":let g:zenburn" then hit Ctrl-d or Tab to scroll through the 63 " list of configurable parameters. 64 " 65 " * You can now set a darker background for bright environments. To activate, use: 66 " let g:zenburn_high_Contrast = 1 67 " 68 " * For transparent terminals set the background to black with: 69 " let g:zenburn_transparent = 1 70 " 71 " * For example, Vim help files uses the Ignore-group for the pipes in tags 72 " like "|somelink.txt|". By default, the pipes are not visible, as they 73 " map to Ignore group. If you wish to enable coloring of the Ignore group, 74 " set the following parameter to 1. Warning, it might make some syntax files 75 " look strange. 76 " 77 " let g:zenburn_color_also_Ignore = 1 78 " 79 " * To get more contrast to the Visual selection, use 80 " 81 " let g:zenburn_alternate_Visual = 1 82 " 83 " Note: this is enabled only if the old-style Visual 84 " if used, see g:zenburn_old_Visual 85 " 86 " * To use alternate colouring for Error message, use 87 " 88 " let g:zenburn_alternate_Error = 1 89 " 90 " * The new default for Include is a duller orange. To use the original 91 " colouring for Include, use 92 " 93 " let g:zenburn_alternate_Include = 1 94 " 95 " * To disable underlining for Labels, use 96 " 97 " let g:zenburn_disable_Label_underline = 1 98 " 99 " * Work-around to a Vim bug, it seems to misinterpret ctermfg and 234 and 237 100 " as light values, and sets background to light for some people. If you have 101 " this problem, use: 102 " 103 " let g:zenburn_force_dark_Background = 1 104 " 105 " * By default the CursorColumn is of a lighter colour. I find it more readable 106 " that way, but some people may want to align it with the darker CursorLine 107 " color, for visual uniformity. To do so, use: 108 " 109 " let g:zenburn_unified_CursorColumn = 1 110 " 111 " Note: you can ignore this unless you use 112 " ":set cursorline cursorcolumn", since otherwise the effect won't be 113 " seen. 114 " 115 " * New (dark) Visual coloring has been introduced. 116 " The dark Visual is more aligned with the rest of the colour scheme, 117 " especially if you use line numbers. If you wish to use the 118 " old Visual coloring, use 119 " 120 " let g:zenburn_old_Visual = 1 121 " 122 " Default is to use the new Visual. 123 " 124 " * EXPERIMENTAL FEATURE: Zenburn would like to support TagHighlight 125 " (an evolved ctags-highlighter) by Al Budden (homepage: 126 " http://www.cgtk.co.uk/vim-scripts/taghighlight). 127 " Current support status is broken: there is no automatic detection of 128 " TagHighlight, no specific language support; however there is some basic 129 " support for Python. If you are a user of TagHighlight and want to help, 130 " please enable: 131 " 132 " let g:zenburn_enable_TagHighlight=1 133 " 134 " and improve the corresponding block at the end of the file. 135 " 136 " NOTE: 137 " 138 " * To turn the parameter(s) back to defaults, use UNLET or set them to 0: 139 " 140 " unlet g:zenburn_alternate_Include 141 " or 142 " let g:zenburn_alternate_Include = 0 143 " 144 " 145 " That's it, enjoy! 146 " 147 " TODO 148 " - Visual alternate color is broken? Try GVim >= 7.0.66 if you have trouble 149 " - IME colouring (CursorIM) 150 151 " Set defaults, but keep any parameters already set by the user 152 if ! exists("g:zenburn_high_Contrast") 153 let g:zenburn_high_Contrast = 0 154 endif 155 156 if ! exists("g:zenburn_transparent") 157 let g:zenburn_transparent = 0 158 endif 159 160 if ! exists("g:zenburn_color_also_Ignore") 161 let g:zenburn_color_also_Ignore = 0 162 endif 163 164 if ! exists("g:zenburn_alternate_Error") 165 let g:zenburn_alternate_Error = 0 166 endif 167 168 if ! exists("g:zenburn_force_dark_Background") 169 let g:zenburn_force_dark_Background = 0 170 endif 171 172 if ! exists("g:zenburn_alternate_Visual") 173 let g:zenburn_alternate_Visual = 0 174 endif 175 176 if ! exists("g:zenburn_alternate_Include") 177 let g:zenburn_alternate_Include = 0 178 endif 179 180 if ! exists("g:zenburn_disable_Label_underline") 181 let g:zenburn_disable_Label_underline = 0 182 endif 183 184 if ! exists("g:zenburn_unified_CursorColumn") 185 let g:zenburn_unified_CursorColumn = 0 186 endif 187 188 if ! exists("g:zenburn_old_Visual") 189 let g:zenburn_old_Visual = 0 190 endif 191 192 if ! exists("g:zenburn_enable_TagHighlight") 193 let g:zenburn_enable_TagHighlight = 0 194 endif 195 196 " ----------------------------------------------- 197 198 set background=dark 199 200 hi clear 201 if exists("syntax_on") 202 syntax reset 203 endif 204 let g:colors_name="zenburn" 205 206 hi Boolean guifg=#dca3a3 207 hi Character guifg=#dca3a3 gui=bold 208 hi Comment guifg=#7f9f7f gui=italic 209 hi Conditional guifg=#f0dfaf gui=bold 210 hi Constant guifg=#dca3a3 gui=bold 211 hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold 212 hi Debug guifg=#bca3a3 gui=bold 213 hi Define guifg=#ffcfaf gui=bold 214 hi Delimiter guifg=#8f8f8f 215 hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold 216 hi DiffChange guibg=#333333 217 hi DiffDelete guifg=#333333 guibg=#464646 218 hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold 219 hi Directory guifg=#9fafaf gui=bold 220 hi ErrorMsg guifg=#80d4aa guibg=#2f2f2f gui=bold 221 hi Exception guifg=#c3bf9f gui=bold 222 hi Float guifg=#c0bed1 223 hi FoldColumn guifg=#93b3a3 guibg=#3f4040 224 hi Folded guifg=#93b3a3 guibg=#3f4040 225 hi Function guifg=#efef8f 226 hi Identifier guifg=#efdcbc 227 hi IncSearch guifg=#f8f893 guibg=#385f38 228 hi Keyword guifg=#f0dfaf gui=bold 229 hi Macro guifg=#ffcfaf gui=bold 230 hi ModeMsg guifg=#ffcfaf gui=none 231 hi MoreMsg guifg=#ffffff gui=bold 232 hi Number guifg=#8cd0d3 233 hi Operator guifg=#f0efd0 234 hi PreCondit guifg=#dfaf8f gui=bold 235 hi PreProc guifg=#ffcfaf gui=bold 236 hi Question guifg=#ffffff gui=bold 237 hi Repeat guifg=#ffd7a7 gui=bold 238 hi Search guifg=#ffffe0 guibg=#284f28 239 hi SpecialChar guifg=#dca3a3 gui=bold 240 hi SpecialComment guifg=#82a282 gui=bold 241 hi Special guifg=#cfbfaf 242 hi SpecialKey guifg=#9ece9e 243 hi Statement guifg=#e3ceab gui=none 244 hi StatusLine guifg=#313633 guibg=#ccdc90 245 hi StatusLineNC guifg=#2e3330 guibg=#88b090 246 hi StorageClass guifg=#c3bf9f gui=bold 247 hi String guifg=#cc9393 248 hi Structure guifg=#efefaf gui=bold 249 hi Tag guifg=#e89393 gui=bold 250 hi Title guifg=#efefef gui=bold 251 hi Todo guifg=#dfdfdf guibg=NONE gui=bold 252 hi Typedef guifg=#dfe4cf gui=bold 253 hi Type guifg=#dfdfbf gui=bold 254 hi Underlined guifg=#dcdccc gui=underline 255 hi VertSplit guifg=#2e3330 guibg=#688060 256 hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline 257 hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold 258 hi WildMenu guifg=#cbecd0 guibg=#2c302d gui=underline 259 260 hi SpellBad guisp=#bc6c4c guifg=#dc8c6c 261 hi SpellCap guisp=#6c6c9c guifg=#8c8cbc 262 hi SpellRare guisp=#bc6c9c guifg=#bc8cbc 263 hi SpellLocal guisp=#7cac7c guifg=#9ccc9c 264 265 " Entering Kurt zone 266 if &t_Co > 255 267 hi Boolean ctermfg=181 268 hi Character ctermfg=181 cterm=bold 269 hi Comment ctermfg=108 270 hi Conditional ctermfg=223 cterm=bold 271 hi Constant ctermfg=181 cterm=bold 272 hi Cursor ctermfg=233 ctermbg=109 cterm=bold 273 hi Debug ctermfg=181 cterm=bold 274 hi Define ctermfg=223 cterm=bold 275 hi Delimiter ctermfg=245 276 hi DiffAdd ctermfg=66 ctermbg=237 cterm=bold 277 hi DiffChange ctermbg=236 278 hi DiffDelete ctermfg=236 ctermbg=238 279 hi DiffText ctermfg=217 ctermbg=237 cterm=bold 280 hi Directory ctermfg=109 cterm=bold 281 hi ErrorMsg ctermfg=115 ctermbg=236 cterm=bold 282 hi Exception ctermfg=249 cterm=bold 283 hi Float ctermfg=251 284 hi Function ctermfg=228 285 hi Identifier ctermfg=223 286 hi Include ctermfg=180 cterm=bold 287 hi IncSearch ctermfg=228 ctermbg=23 288 hi Keyword ctermfg=223 cterm=bold 289 hi LineNr ctermfg=248 ctermbg=233 290 hi Macro ctermfg=223 cterm=bold 291 hi MatchParen ctermfg=229 ctermbg=237 cterm=bold 292 hi ModeMsg ctermfg=223 cterm=none 293 hi MoreMsg ctermfg=15 cterm=bold 294 hi Number ctermfg=116 295 hi Operator ctermfg=230 296 hi PreCondit ctermfg=180 cterm=bold 297 hi PreProc ctermfg=223 cterm=bold 298 hi Question ctermfg=15 cterm=bold 299 hi Repeat ctermfg=223 cterm=bold 300 hi Search ctermfg=230 ctermbg=22 301 hi SpecialChar ctermfg=181 cterm=bold 302 hi SpecialComment ctermfg=108 cterm=bold 303 hi Special ctermfg=181 304 hi SpecialKey ctermfg=151 305 hi Statement ctermfg=187 cterm=none 306 hi StatusLine ctermfg=236 ctermbg=186 307 hi StatusLineNC ctermfg=235 ctermbg=108 308 hi StorageClass ctermfg=249 cterm=bold 309 hi String ctermfg=174 310 hi Structure ctermfg=229 cterm=bold 311 hi Tag ctermfg=181 cterm=bold 312 hi Title ctermfg=7 ctermbg=NONE cterm=bold 313 hi Todo ctermfg=254 ctermbg=NONE cterm=bold 314 hi Typedef ctermfg=253 cterm=bold 315 hi Type ctermfg=187 cterm=bold 316 hi Underlined ctermfg=188 cterm=underline 317 hi VertSplit ctermfg=236 ctermbg=65 318 hi VisualNOS ctermfg=236 ctermbg=210 cterm=bold 319 hi WarningMsg ctermfg=231 ctermbg=236 cterm=bold 320 hi WildMenu ctermfg=194 ctermbg=236 cterm=underline 321 322 " spellchecking, always "bright" background 323 hi SpellLocal ctermfg=14 ctermbg=237 324 hi SpellBad ctermfg=9 ctermbg=237 325 hi SpellCap ctermfg=12 ctermbg=237 326 hi SpellRare ctermfg=13 ctermbg=237 327 328 " pmenu 329 hi PMenu ctermfg=248 ctermbg=0 330 hi PMenuSel ctermfg=223 ctermbg=235 331 332 if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast 333 hi Normal ctermfg=188 ctermbg=234 334 hi NonText ctermfg=238 335 336 if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore 337 hi Ignore ctermfg=238 338 endif 339 340 " hc mode, darker CursorLine, default 236 341 hi CursorLine ctermbg=233 cterm=none 342 343 if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn 344 hi CursorColumn ctermbg=233 cterm=none 345 else 346 hi CursorColumn ctermbg=235 cterm=none 347 endif 348 349 hi ColorColumn ctermbg=235 350 else 351 hi Normal ctermfg=188 ctermbg=237 352 hi Cursor ctermbg=109 353 hi diffadd ctermbg=237 354 hi diffdelete ctermbg=238 355 hi difftext ctermbg=237 356 hi errormsg ctermbg=237 357 hi linenr ctermbg=235 358 hi statusline ctermbg=144 359 hi statuslinenc ctermbg=108 360 hi title ctermbg=237 361 hi todo ctermbg=237 362 hi underlined ctermbg=237 363 hi vertsplit ctermbg=65 364 hi visualnos ctermbg=210 365 hi warningmsg ctermbg=236 366 hi wildmenu ctermbg=236 367 hi NonText ctermfg=240 368 369 if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore 370 hi Ignore ctermfg=240 371 endif 372 373 " normal mode, lighter CursorLine 374 hi CursorLine ctermbg=238 cterm=none 375 376 if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn 377 hi CursorColumn ctermbg=238 cterm=none 378 else 379 hi CursorColumn ctermbg=239 cterm=none 380 endif 381 382 hi ColorColumn ctermbg=238 383 endif 384 385 if exists("g:zenburn_alternate_Error") && g:zenburn_alternate_Error 386 " use more jumpy Error 387 hi Error ctermfg=210 ctermbg=52 cterm=bold 388 else 389 " default is something more zenburn-compatible 390 hi Error ctermfg=167 ctermbg=236 cterm=bold 391 endif 392 393 if exists("g:zenburn_alternate_Include") && g:zenburn_alternate_Include 394 " original setting 395 hi Include ctermfg=223 cterm=bold 396 else 397 " new, less contrasted one 398 hi Include ctermfg=180 cterm=bold 399 endif 400 401 if exists("g:zenburn_disable_Label_underline") && g:zenburn_disable_Label_underline 402 hi Label ctermfg=187 403 else 404 hi Label ctermfg=187 cterm=underline 405 endif 406 endif 407 408 if exists("g:zenburn_force_dark_Background") && g:zenburn_force_dark_Background 409 " Force dark background, because of a bug in VIM: VIM sets background 410 " automatically during "hi Normal ctermfg=X"; it misinterprets the high 411 " value (234 or 237 above) as a light color, and wrongly sets background to 412 " light. See ":help highlight" for details. 413 set background=dark 414 endif 415 416 if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast 417 " use new darker background 418 hi Normal guifg=#dcdccc guibg=#1f1f1f 419 hi CursorLine guibg=#121212 gui=bold 420 if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn 421 hi CursorColumn guibg=#121212 gui=bold 422 else 423 hi CursorColumn guibg=#2b2b2b 424 endif 425 hi Pmenu guibg=#242424 guifg=#ccccbc 426 hi PMenuSel guibg=#353a37 guifg=#ccdc90 gui=bold 427 hi PmenuSbar guibg=#2e3330 guifg=#000000 428 hi PMenuThumb guibg=#a0afa0 guifg=#040404 429 hi MatchParen guifg=#f0f0c0 guibg=#383838 gui=bold 430 hi SignColumn guifg=#9fafaf guibg=#181818 gui=bold 431 hi NonText guifg=#404040 gui=bold 432 433 hi LineNr guifg=#9fafaf guibg=#161616 434 435 hi ColorColumn guibg=#33332f 436 else 437 " Original, lighter background 438 hi Normal guifg=#dcdccc guibg=#3f3f3f 439 hi CursorLine guibg=#434443 440 if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn 441 hi CursorColumn guibg=#434343 442 else 443 hi CursorColumn guibg=#4f4f4f 444 endif 445 hi Pmenu guibg=#2c2e2e guifg=#9f9f9f 446 hi PMenuSel guibg=#242424 guifg=#d0d0a0 gui=bold 447 hi PmenuSbar guibg=#2e3330 guifg=#000000 448 hi PMenuThumb guibg=#a0afa0 guifg=#040404 449 hi MatchParen guifg=#b2b2a0 guibg=#2e2e2e gui=bold 450 hi SignColumn guifg=#9fafaf guibg=#343434 gui=bold 451 hi NonText guifg=#5b605e gui=bold 452 453 hi LineNr guifg=#9fafaf guibg=#262626 454 455 hi ColorColumn guibg=#484848 456 endif 457 458 if exists("g:zenburn_transparent") && g:zenburn_transparent 459 hi Normal ctermbg=0 guibg=#000000 460 hi Statement ctermbg=NONE 461 hi Title ctermbg=NONE 462 hi Todo ctermbg=NONE 463 hi Underlined ctermbg=NONE 464 hi DiffAdd ctermbg=NONE 465 hi DiffText ctermbg=NONE 466 hi ErrorMsg ctermbg=NONE 467 hi LineNr ctermbg=NONE 468 endif 469 470 if exists("g:zenburn_old_Visual") && g:zenburn_old_Visual 471 if exists("g:zenburn_alternate_Visual") && g:zenburn_alternate_Visual 472 " Visual with more contrast, thanks to Steve Hall & Cream posse 473 " gui=none fixes weird highlight problem in at least GVim 7.0.66, thanks to Kurt Maier 474 hi Visual guifg=#000000 guibg=#71d3b4 gui=none 475 hi VisualNOS guifg=#000000 guibg=#71d3b4 gui=none 476 else 477 " use default visual 478 hi Visual guifg=#233323 guibg=#71d3b4 gui=none 479 hi VisualNOS guifg=#233323 guibg=#71d3b4 gui=none 480 endif 481 else 482 " new Visual style 483 if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast 484 " high contrast 485 "hi Visual guibg=#304a3d 486 "hi VisualNos guibg=#304a3d 487 "TODO no nice greenish in console, 65 is closest. use full black instead, 488 "although i like the green..! 489 hi Visual guibg=#0f0f0f 490 hi VisualNos guibg=#0f0f0f 491 if &t_Co > 255 492 if exists("g:zenburn_transparent") && g:zenburn_transparent 493 hi Visual ctermbg=235 494 else 495 hi Visual ctermbg=0 496 endif 497 endif 498 else 499 " low contrast 500 hi Visual guibg=#2f2f2f 501 hi VisualNOS guibg=#2f2f2f 502 503 if &t_Co > 255 504 hi Visual ctermbg=235 505 hi VisualNOS ctermbg=235 506 endif 507 endif 508 endif 509 510 if exists("g:zenburn_alternate_Error") && g:zenburn_alternate_Error 511 " use more jumpy Error 512 hi Error guifg=#e37170 guibg=#664040 gui=bold 513 else 514 " default is something more zenburn-compatible 515 hi Error guifg=#e37170 guibg=#3d3535 gui=none 516 endif 517 518 if exists("g:zenburn_alternate_Include") && g:zenburn_alternate_Include 519 " original setting 520 hi Include guifg=#ffcfaf gui=bold 521 else 522 " new, less contrasted one 523 hi Include guifg=#dfaf8f gui=bold 524 endif 525 526 if exists("g:zenburn_disable_Label_underline") && g:zenburn_disable_Label_underline 527 hi Label guifg=#dfcfaf 528 else 529 hi Label guifg=#dfcfaf gui=underline 530 endif 531 532 if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore 533 " color the Ignore groups 534 " note: if you get strange coloring for your files, turn this off (unlet) 535 hi Ignore guifg=#545a4f 536 endif 537 538 " new tabline and fold column 539 if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast 540 hi FoldColumn guibg=#161616 541 hi Folded guibg=#161616 542 hi TabLine guifg=#88b090 guibg=#313633 gui=none 543 hi TabLineSel guifg=#ccd990 guibg=#222222 544 hi TabLineFill guifg=#88b090 guibg=#313633 gui=none 545 546 hi SpecialKey guibg=#242424 547 548 if &t_Co > 255 549 hi FoldColumn ctermbg=233 ctermfg=109 550 hi Folded ctermbg=233 ctermfg=109 551 hi TabLine ctermbg=236 ctermfg=108 cterm=none 552 hi TabLineSel ctermbg=235 ctermfg=186 cterm=bold 553 hi TabLineFill ctermbg=236 ctermfg=236 cterm=bold 554 endif 555 else 556 hi FoldColumn guibg=#333333 557 hi Folded guibg=#333333 558 hi TabLine guifg=#d0d0b8 guibg=#222222 gui=none 559 hi TabLineSel guifg=#f0f0b0 guibg=#333333 gui=bold 560 hi TabLineFill guifg=#dccdcc guibg=#101010 gui=none 561 562 hi SpecialKey guibg=#444444 563 564 if &t_Co > 255 565 hi FoldColumn ctermbg=236 ctermfg=109 566 hi Folded ctermbg=236 ctermfg=109 567 hi TabLine ctermbg=235 ctermfg=187 cterm=none 568 hi TabLineSel ctermbg=236 ctermfg=229 cterm=bold 569 hi TabLineFill ctermbg=233 ctermfg=233 cterm=bold 570 endif 571 endif 572 573 " EXPERIMENTAL TagHighlight support 574 " link/set sensible defaults here; 575 " 576 " For now I mostly link to subset of Zenburn colors, the linkage is based 577 " on appearance, not semantics. In later versions I might define more new colours. 578 " 579 " HELP NEEDED to make this work properly. 580 581 if exists("g:zenburn_enable_TagHighlight") && g:zenburn_enable_TagHighlight 582 " CTag support may vary, but the first step is to start using it so 583 " we can fix it! 584 " 585 " Consult /plugin/TagHighlight/data/kinds.txt for info on your 586 " language and what's been defined. 587 " 588 " There is potential for language indepedent features here. (Acutally, 589 " seems it may be required for this to be useful...) This way we can 590 " implement features depending on how well CTags are currently implemented 591 " for the language. ie. Global problem for python is annoying. Special 592 " colors are defined for special language features, etc.. 593 " 594 " For now all I care about is python supported features: 595 " c:CTagsClass 596 " f:CTagsFunction 597 " i:CTagsImport 598 " m:CTagsMember 599 " v:CTagsGlobalVariable 600 " 601 " Note: TagHighlight defaults to setting new tags to Keyword 602 " highlighting. 603 604 " TODO conditionally run each section 605 " BEGIN Python Section 606 hi link Class Function 607 hi link Import PythonInclude 608 hi link Member Function 609 "Note: Function is already defined 610 611 " Highlighter seems to think a lot of things are global variables even 612 " though they're not. Example: python method-local variable is 613 " coloured as a global variable. They should not be global, since 614 " they're not visible outside the method. 615 " If this is some very bright colour group then things look bad. 616 " hi link GlobalVariable Identifier 617 618 " Because of this problem I am disabling the feature by setting it to 619 " Normal instead 620 hi link GlobalVariable Normal 621 " END Python Section 622 623 " Starting point for other languages. 624 hi link GlobalConstant Constant 625 hi link EnumerationValue Float 626 hi link EnumerationName Identifier 627 hi link DefinedName WarningMsg 628 hi link LocalVariable WarningMsg 629 hi link Structure WarningMsg 630 hi link Union WarningMsg 631 endif 632 633 " TODO check for more obscure syntax groups that they're ok 634