Created
March 10, 2011 19:53
-
-
Save clindsey/864790 to your computer and use it in GitHub Desktop.
my javascript syntax vim file, osx 10.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mv /usr/share/vim/vim73/syntax/javascript.vim /usr/share/vim/vim72/syntax/javascript.vim.old | |
mkdir -p ~/.vim/syntax | |
mkdir -p ~/.vim/colors | |
ln -s `pwd`/javascript.vim ~/.vim/syntax/javascript.vim | |
ln -s `pwd`/zenburn.vim ~/.vim/colors/zenburn.vim | |
ln -s `pwd`/vimrc ~/.vimrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: JavaScript | |
if !exists("main_syntax") | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") | |
finish | |
endif | |
let main_syntax = 'javascript' | |
endif | |
syntax sync fromstart | |
syntax case ignore | |
" 42 | |
syntax match metaBraceSquareJS /\[\|\]/ | |
" 41 | |
syntax match metaBraceRoundJS /(\|)/ | |
" 40 | |
syntax match metaBraceCurlyJS /{\|}/ | |
" 39 | |
syntax match metaDelimiterMethodPeriodJS /./ | |
" 37 | |
syntax match punctuationTerminatorStatementJS /;/ | |
" 36 | |
syntax region stringRegexpJS start=+/\(\*\|/\)\@!+ skip=+\\\\\|\\/+ end=+/[gim]\{-,3}\(\s*[]),.;$]\)\@=+ oneline | |
" 35 | |
syntax match constantLanguageJS /\<\(infinity\|NaN\|undefined\)\>/ | |
" 34 | |
syntax match keywordOperatorJS /!\|\$\|%\|&\|\*\|\--\|-\|++\|+\|\~\|===\|==\|=\|!=\|!==\|<=\|>=\|<<=\|>>=\|>>>=\|<>\|<\|>\|!\|&&\|||\|?:\|\*=\|%=\|+=\|\-=\|&=\|\^=\|\<\(in\|instanceof\|new\|delete\|typeof\|void\)\>/ | |
" 27 | |
syntax match supportClassJS /\<\(Anchor\|Applet\|Area\|Array\|Boolean\|Button\|Checkbox\|Date\|document\|event\|FileUpload\|Form\|Frame\|Function\|Hidden\|History\|Image\|JavaArray\|JavaClass\|JavaObject\|JavaPackage\|java\|Layer\|Link\|Location\|Math\|MimeType\|Number\|navigator\|netscape\|Object\|Option\|Packages\|Password\|Plugin\|Radio\|RegExp\|Reset\|Select\|String\|Style\|Submit\|screen\|sun\|Text\|Textarea\|window\|XMLHttpRequest\)\>/ | |
" 26 | |
syntax match keywordOtherJS /\<\(debugger\)\>/ | |
" 25 | |
syntax match variableLanguageJS /\<\(super\|this\)\>/ | |
" 24 | |
syntax match constantLangaugeNullJS /\<null\>/ | |
" 23 | |
syntax match constantLanguageBooleanFalseJS /\<false\>/ | |
" 22 | |
syntax match constantLanguageBooleanTrueJS /\<true\>/ | |
" 21 | |
syntax match keywordOperatorJS /\<\(delete\|in\|instanceof\|new\|typeof\|with\)\>/ | |
" 20 | |
syntax match keywordControlJS /\<\(break\|case\|catch\|continue\|default\|do\|else\|finally\|for\|goto\|if\|import\|package\|return\|switch\|throw\|try\|while\)\>/ | |
" 19 | |
syntax match storageModifierJS /\<\(const\|export\|extends\|final\|implements\|native\|private\|protected\|public\|static\|synchronized\|throws\|transient\|volatile\)\>/ | |
" 18 | |
syntax match storageTypeJS /\<\(boolean\|byte\|char\|class\|double\|enum\|float\|function\|int\|interface\|long\|short\|var\|void\)\>/ | |
" 16 | |
syntax match commentLineDoubleSlashJS /\/\/.*$\n\?/ | |
" 15 | |
syntax region commentBlockJS start=+/\*+ end=+\*/+ | |
" 13 | |
syntax region stringQuotedDoubleJS start=+"+ skip=+\\\\\|\\+ end=+"+ | |
" 12 | |
syntax region stringQuotedSingleJS start=+'+ skip=+\\\\\|\\+ end=+'+ | |
" 11 | |
syntax match constantNumericJS /\<\(0\(\(x\|X\)[0-9a-fA-F]\+\)\|\([0-9]\+\(\.[0-9]\+\)\?\)\)\>/ | |
" 10 | |
syntax match supportFunctionJSFirebug contained /warn\|info\|log\|error\|time\|timeEnd\|assert/ | |
syntax match normalJS /\.\(warn\|info\|log\|error\|time\|timeEnd\|assert\)\>/ contains=supportFunctionJSFirebug | |
" 9 | |
syntax match entityNameTypeObjectJSFirebug /\<console\>/ | |
" 8 | |
syntax match keywordOperatorNewJS contained /new/ | |
syntax match normalJS contained /\s\+/ | |
syntax match entityNameTypeInstanceJS /\(new\)\s\+\(\w\+\(\.\w[^(]*\)\?\)/ contains=keywordOperatorNewJS,normalJS | |
" 6 | |
syntax match entityNameFunctionJS contained /[a-zA-Z_?.$]\w*/ | |
syntax match storageTypeFunctionJS contained /function/ | |
syntax match normalJS /\<[a-zA-Z_?.$]\w*\s*:\s*function\s*/ contains=entityNameFunctionJS,storageTypeFunctionJS | |
" 5 | |
syntax match storageTypeFunctionJS contained /function/ | |
syntax match entityNameFunctionJS contained /[a-zA-Z_?.$]\w*/ | |
syntax match normalJS /\<\(function\)\s\+\([a-zA-Z_?.$]\w*\)\?\s*/ contains=storageTypeFunctionJS,entityNameFunctionJS | |
" 3 | |
syntax match entityNameFunctionJS contained /[a-zA-Z_?.$][\w?.$]*/ | |
syntax match keywordOperatorJS contained /=/ | |
syntax match storageTypeFunctionJS contained /function/ | |
syntax match normalJS /[a-zA-Z_?.$]\w*\s*=\s*function/ contains=entityNameFunctionJS,keywordOperatorJS,storageTypeFunctionJS | |
if !exists("did_javascript_syn_inits") | |
let did_javascript_syn_inits = 1 | |
command -nargs=+ HiLink hi def link <args> | |
HiLink commentBlockJS Comment | |
HiLink commentBlockDocumnetationJS Comment | |
HiLink commentBlockHtmlJS Comment | |
HiLink commentLineDoubleSlashJS Comment | |
HiLink constantCharacterEscapeJS Constant | |
HiLink constantLanguageBooleanFalseJS Constant | |
HiLink constantLanguageBooleanTrueJS Constant | |
HiLink constantLanguageJS Normal | |
HiLink constantLanguageNullJS Constant | |
HiLink constantNumericJS Constant | |
HiLink entityNameFunctionJS Function | |
HiLink entityNameTypeInstanceJS Function | |
HiLink entityNameTypeObjectJSFirebug Function | |
HiLink keywordControlJS Keyword | |
HiLink keywordOperatorJS Operator | |
HiLink keywordOtherJS Normal | |
HiLink keywordOperatorNewJS Operator | |
HiLink metaBraceCurlyJS Normal | |
HiLink metaBraceRoundJS Normal | |
HiLink metaBraceSquareJS Normal | |
HiLink metaClassJS Normal | |
HiLink metaDelimiterMethodPeriodJS Normal | |
HiLink metaDelimiterObjectCommaJS Normal | |
HiLink metaFunctionJS Normal | |
HiLink metaFunctionPrototypeJsonJS Normal | |
HiLink metaFunctionPrototypeJS Normal | |
HiLink normalJS Normal | |
HiLink punctuationDefinitionCommentJS Normal | |
HiLink punctuationDefinitionCommentHtmlJS Normal | |
HiLink punctuationDefinitionParametersBeginJS Normal | |
HiLink punctuationDefinitionParametersEndJS Normal | |
HiLink punctuationDefinitionStringBeginJS Normal | |
HiLink punctuationDefinitionStringEndJS Normal | |
HiLink punctuationTerminatorStatementJS Normal | |
HiLink storageModifierJS Normal | |
HiLink storageTypeJS Type | |
HiLink storageTypeFunctionJS Type | |
HiLink stringQuotedDoubleJS String | |
HiLink stringQuotedSingleJS String | |
HiLink stringRegexpJS String | |
HiLink supportClassJS Normal | |
HiLink supportConstantDomJS Normal | |
HiLink supportConstantJS Normal | |
HiLink supportFunctionDomJS Normal | |
HiLink supportFunctionEventHandlerJS Normal | |
HiLink supportFunctionJS Normal | |
HiLink supportFunctionJSFirebug Normal | |
HiLink variableLanguageJS Normal | |
HiLink variableParameterFunctionJS Normal | |
hi Comment ctermfg=darkGreen | |
hi Constant ctermfg=cyan | |
hi String ctermfg=darkRed | |
hi Character ctermfg=grey | |
hi Number ctermfg=grey | |
hi Boolean ctermfg=grey | |
hi Float ctermfg=grey | |
hi Identifier ctermfg=grey | |
hi Function ctermfg=darkYellow | |
hi Statement ctermfg=grey | |
hi Conditional ctermfg=grey | |
hi Repeat ctermfg=grey | |
hi Label ctermfg=grey | |
hi Operator ctermfg=yellow | |
hi Keyword ctermfg=yellow | |
hi Exception ctermfg=grey | |
hi PreProc ctermfg=grey | |
hi Include ctermfg=grey | |
hi Define ctermfg=grey | |
hi Macro ctermfg=grey | |
hi PreCondit ctermfg=grey | |
hi Type ctermfg=darkCyan | |
hi StorageType ctermfg=grey | |
hi Structure ctermfg=grey | |
hi Typedef ctermfg=grey | |
hi Special ctermfg=grey | |
hi SpecialChar ctermfg=grey | |
hi Tag ctermfg=grey | |
hi Delimiter ctermfg=grey | |
hi SpecialComment ctermfg=grey | |
hi Debug ctermfg=grey | |
hi Underlined ctermfg=grey | |
hi Ignore ctermfg=grey | |
hi Error ctermfg=grey | |
hi Todo ctermfg=grey | |
hi NonText ctermfg=darkGrey | |
hi LineNr ctermfg=grey ctermbg=black | |
delcommand HiLink | |
endif | |
let b:current_syntax = "javascript" | |
if main_syntax == 'javascript' | |
unlet main_syntax | |
endif | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/vim | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set autoindent | |
set smartindent | |
set showmatch | |
set vb t_vb= | |
set ruler | |
set incsearch | |
set hlsearch | |
set virtualedit=all | |
colorscheme zenburn | |
colors zenburn | |
set list | |
set number | |
syntax on | |
set guifont=Monaco\ 12 | |
set cursorline | |
set guioptions=aAce | |
set nowrap | |
if has("gui_macvim") | |
set transparency=5 | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Maintainer: Jani Nurminen <[email protected]> | |
" Last Change: $Id: zenburn.vim,v 2.16 2010/10/24 10:55:30 slinky Exp slinky $ | |
" URL: http://slinky.imukuppi.org/zenburnpage/ | |
" License: GNU GPL <http://www.gnu.org/licenses/gpl.html> | |
" | |
" Nothing too fancy, just some alien fruit salad to keep you in the zone. | |
" This syntax file was designed to be used with dark environments and | |
" low light situations. Of course, if it works during a daybright office, go | |
" ahead :) | |
" | |
" Owes heavily to other Vim color files! With special mentions | |
" to "BlackDust", "Camo" and "Desert". | |
" | |
" To install, copy to ~/.vim/colors directory. | |
" | |
" Alternatively, you can use Vimball installation: | |
" vim zenburn.vba | |
" :so % | |
" :q | |
" | |
" For details, see :help vimball | |
" | |
" After installation, use it with :colorscheme zenburn. | |
" See also :help syntax | |
" | |
" Credits: | |
" - Jani Nurminen - original Zenburn, maintainer | |
" - Steve Hall & Cream posse - higher-contrast Visual selection | |
" - Kurt Maier - 256 color console coloring, low and high contrast toggle, | |
" bug fixing | |
" - Charlie - spotted too bright StatusLine in non-high contrast mode | |
" - Pablo Castellazzi - CursorLine fix for 256 color mode | |
" - Tim Smith - force dark background | |
" - John Gabriele - spotted bad Ignore-group handling | |
" - Zac Thompson - spotted invisible NonText in low contrast mode | |
" - Christophe-Marie Duquesne - suggested making a Vimball | |
" - Andrew Wagner - noted the CursorColumn bug (guifg was unintentionally set), | |
" unify CursorColumn colour | |
" - Martin Langasek - clarify the license, whitespace fixes | |
" - Marcin Szamotulski - support autocomplete for Zenburn configuration | |
" parameters | |
" | |
" CONFIGURABLE PARAMETERS: | |
" | |
" You can use the default (don't set any parameters), or you can | |
" set some parameters to tweak the Zenburn colours. | |
" | |
" To use them, put them into your .vimrc file before loading the color scheme, | |
" example: | |
" let g:zenburn_high_Contrast=1 | |
" colors zenburn | |
" | |
" You can also do ":let g:zenburn" then hit Ctrl-d or Tab to scroll through the | |
" list of configurable parameters. | |
" | |
" * You can now set a darker background for bright environments. To activate, use: | |
" contrast Zenburn, use: | |
" | |
" let g:zenburn_high_Contrast = 1 | |
" | |
" * For example, Vim help files uses the Ignore-group for the pipes in tags | |
" like "|somelink.txt|". By default, the pipes are not visible, as they | |
" map to Ignore group. If you wish to enable coloring of the Ignore group, | |
" set the following parameter to 1. Warning, it might make some syntax files | |
" look strange. | |
" | |
" let g:zenburn_color_also_Ignore = 1 | |
" | |
" * To get more contrast to the Visual selection, use | |
" | |
" let g:zenburn_alternate_Visual = 1 | |
" | |
" * To use alternate colouring for Error message, use | |
" | |
" let g:zenburn_alternate_Error = 1 | |
" | |
" * The new default for Include is a duller orange. To use the original | |
" colouring for Include, use | |
" | |
" let g:zenburn_alternate_Include = 1 | |
" | |
" * Work-around to a Vim bug, it seems to misinterpret ctermfg and 234 and 237 | |
" as light values, and sets background to light for some people. If you have | |
" this problem, use: | |
" | |
" let g:zenburn_force_dark_Background = 1 | |
" | |
" * By default the CursorColumn is of a lighter colour. I find it more readable | |
" that way, but some people may want to align it with the darker CursorLine | |
" color, for visual uniformity. To do so, use: | |
" | |
" let g:zenburn_unified_CursorColumn = 1 | |
" | |
" Note: you can ignore this unless you use | |
" ":set cursorline cursorcolumn", since otherwise the effect won't be | |
" seen. | |
" | |
" NOTE: | |
" | |
" * To turn the parameter(s) back to defaults, use UNLET or set them to 0: | |
" | |
" unlet g:zenburn_alternate_Include | |
" or | |
" let g:zenburn_alternate_Include = 0 | |
" | |
" | |
" That's it, enjoy! | |
" | |
" TODO | |
" - Visual alternate color is broken? Try GVim >= 7.0.66 if you have trouble | |
" - IME colouring (CursorIM) | |
" Set defaults, but keep any parameters already set by the user | |
if ! exists("g:zenburn_high_Contrast") | |
let g:zenburn_high_Contrast = 0 | |
endif | |
if ! exists("g:zenburn_color_also_Ignore") | |
let g:zenburn_color_also_Ignore = 0 | |
endif | |
if ! exists("g:zenburn_alternate_Error") | |
let g:zenburn_alternate_Error = 0 | |
endif | |
if ! exists("g:zenburn_force_dark_Background") | |
let g:zenburn_force_dark_Background = 0 | |
endif | |
if ! exists("g:zenburn_alternate_Visual") | |
let g:zenburn_alternate_Visual = 0 | |
endif | |
if ! exists("g:zenburn_alternate_Include") | |
let g:zenburn_alternate_Include = 0 | |
endif | |
if ! exists("g:zenburn_unified_CursorColumn") | |
let g:zenburn_unified_CursorColumn = 0 | |
endif | |
" ----------------------------------------------- | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name="zenburn" | |
hi Boolean guifg=#dca3a3 | |
hi Character guifg=#dca3a3 gui=bold | |
hi Comment guifg=#7f9f7f gui=italic | |
hi Conditional guifg=#f0dfaf gui=bold | |
hi Constant guifg=#dca3a3 gui=bold | |
hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold | |
hi Debug guifg=#bca3a3 gui=bold | |
hi Define guifg=#ffcfaf gui=bold | |
hi Delimiter guifg=#8f8f8f | |
hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold | |
hi DiffChange guibg=#333333 | |
hi DiffDelete guifg=#333333 guibg=#464646 | |
hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold | |
hi Directory guifg=#dcdccc gui=bold | |
hi ErrorMsg guifg=#80d4aa guibg=#2f2f2f gui=bold | |
hi Exception guifg=#c3bf9f gui=bold | |
hi Float guifg=#c0bed1 | |
hi FoldColumn guifg=#93b3a3 guibg=#3f4040 | |
hi Folded guifg=#93b3a3 guibg=#3f4040 | |
hi Function guifg=#efef8f | |
hi Identifier guifg=#efdcbc | |
hi IncSearch guibg=#f8f893 guifg=#385f38 | |
hi Keyword guifg=#f0dfaf gui=bold | |
hi Label guifg=#dfcfaf gui=underline | |
hi LineNr guifg=#9fafaf guibg=#262626 | |
hi Macro guifg=#ffcfaf gui=bold | |
hi ModeMsg guifg=#ffcfaf gui=none | |
hi MoreMsg guifg=#ffffff gui=bold | |
hi Number guifg=#8cd0d3 | |
hi Operator guifg=#f0efd0 | |
hi PreCondit guifg=#dfaf8f gui=bold | |
hi PreProc guifg=#ffcfaf gui=bold | |
hi Question guifg=#ffffff gui=bold | |
hi Repeat guifg=#ffd7a7 gui=bold | |
hi Search guifg=#ffffe0 guibg=#284f28 | |
hi SpecialChar guifg=#dca3a3 gui=bold | |
hi SpecialComment guifg=#82a282 gui=bold | |
hi Special guifg=#cfbfaf | |
hi SpecialKey guifg=#9ece9e | |
hi Statement guifg=#e3ceab gui=none | |
hi StatusLine guifg=#313633 guibg=#ccdc90 | |
hi StatusLineNC guifg=#2e3330 guibg=#88b090 | |
hi StorageClass guifg=#c3bf9f gui=bold | |
hi String guifg=#cc9393 | |
hi Structure guifg=#efefaf gui=bold | |
hi Tag guifg=#e89393 gui=bold | |
hi Title guifg=#efefef gui=bold | |
hi Todo guifg=#dfdfdf guibg=bg gui=bold | |
hi Typedef guifg=#dfe4cf gui=bold | |
hi Type guifg=#dfdfbf gui=bold | |
hi Underlined guifg=#dcdccc gui=underline | |
hi VertSplit guifg=#2e3330 guibg=#688060 | |
hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline | |
hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold | |
hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline | |
hi SpellBad guisp=#bc6c4c guifg=#dc8c6c | |
hi SpellCap guisp=#6c6c9c guifg=#8c8cbc | |
hi SpellRare guisp=#bc6c9c guifg=#bc8cbc | |
hi SpellLocal guisp=#7cac7c guifg=#9ccc9c | |
" Entering Kurt zone | |
if &t_Co > 255 | |
hi Boolean ctermfg=181 | |
hi Character ctermfg=181 cterm=bold | |
hi Comment ctermfg=108 | |
hi Conditional ctermfg=223 cterm=bold | |
hi Constant ctermfg=181 cterm=bold | |
hi Cursor ctermfg=233 ctermbg=109 cterm=bold | |
hi Debug ctermfg=181 cterm=bold | |
hi Define ctermfg=223 cterm=bold | |
hi Delimiter ctermfg=245 | |
hi DiffAdd ctermfg=66 ctermbg=237 cterm=bold | |
hi DiffChange ctermbg=236 | |
hi DiffDelete ctermfg=236 ctermbg=238 | |
hi DiffText ctermfg=217 ctermbg=237 cterm=bold | |
hi Directory ctermfg=188 cterm=bold | |
hi ErrorMsg ctermfg=115 ctermbg=236 cterm=bold | |
hi Exception ctermfg=249 cterm=bold | |
hi Float ctermfg=251 | |
hi FoldColumn ctermfg=109 ctermbg=238 | |
hi Folded ctermfg=109 ctermbg=238 | |
hi Function ctermfg=228 | |
hi Identifier ctermfg=223 | |
hi IncSearch ctermbg=228 ctermfg=238 | |
hi Keyword ctermfg=223 cterm=bold | |
hi Label ctermfg=187 cterm=underline | |
hi LineNr ctermfg=248 ctermbg=235 | |
hi Macro ctermfg=223 cterm=bold | |
hi ModeMsg ctermfg=223 cterm=none | |
hi MoreMsg ctermfg=15 cterm=bold | |
hi Number ctermfg=116 | |
hi Operator ctermfg=230 | |
hi PreCondit ctermfg=180 cterm=bold | |
hi PreProc ctermfg=223 cterm=bold | |
hi Question ctermfg=15 cterm=bold | |
hi Repeat ctermfg=223 cterm=bold | |
hi Search ctermfg=230 ctermbg=236 | |
hi SpecialChar ctermfg=181 cterm=bold | |
hi SpecialComment ctermfg=108 cterm=bold | |
hi Special ctermfg=181 | |
hi SpecialKey ctermfg=151 | |
hi Statement ctermfg=187 ctermbg=234 cterm=none | |
hi StatusLine ctermfg=236 ctermbg=186 | |
hi StatusLineNC ctermfg=235 ctermbg=108 | |
hi StorageClass ctermfg=249 cterm=bold | |
hi String ctermfg=174 | |
hi Structure ctermfg=229 cterm=bold | |
hi Tag ctermfg=181 cterm=bold | |
hi Title ctermfg=7 ctermbg=234 cterm=bold | |
hi Todo ctermfg=108 ctermbg=234 cterm=bold | |
hi Typedef ctermfg=253 cterm=bold | |
hi Type ctermfg=187 cterm=bold | |
hi Underlined ctermfg=188 ctermbg=234 cterm=bold | |
hi VertSplit ctermfg=236 ctermbg=65 | |
hi VisualNOS ctermfg=236 ctermbg=210 cterm=bold | |
hi WarningMsg ctermfg=15 ctermbg=236 cterm=bold | |
hi WildMenu ctermbg=236 ctermfg=194 cterm=bold | |
" spellchecking, always "bright" background | |
hi SpellLocal ctermfg=14 ctermbg=237 | |
hi SpellBad ctermfg=9 ctermbg=237 | |
hi SpellCap ctermfg=12 ctermbg=237 | |
hi SpellRare ctermfg=13 ctermbg=237 | |
" pmenu | |
hi PMenu ctermfg=248 ctermbg=0 | |
hi PMenuSel ctermfg=223 ctermbg=235 | |
if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast | |
hi Normal ctermfg=188 ctermbg=234 | |
hi NonText ctermfg=238 | |
if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore | |
hi Ignore ctermfg=238 | |
endif | |
" hc mode, darker CursorLine, default 236 | |
hi CursorLine ctermbg=233 cterm=none | |
if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn | |
hi CursorColumn ctermbg=233 cterm=none | |
else | |
hi CursorColumn ctermbg=235 cterm=none | |
endif | |
else | |
hi Normal ctermfg=188 ctermbg=233 | |
hi Cursor ctermbg=109 | |
hi diffadd ctermbg=237 | |
hi diffdelete ctermbg=238 | |
hi difftext ctermbg=237 | |
hi errormsg ctermbg=237 | |
hi foldcolumn ctermbg=238 | |
hi folded ctermbg=238 | |
hi incsearch ctermbg=228 | |
hi linenr ctermbg=238 | |
hi search ctermbg=238 | |
hi statement ctermbg=237 | |
hi statusline ctermbg=144 | |
hi statuslinenc ctermbg=108 | |
hi title ctermbg=237 | |
hi todo ctermbg=237 | |
hi underlined ctermbg=237 | |
hi vertsplit ctermbg=65 | |
hi visualnos ctermbg=210 | |
hi warningmsg ctermbg=236 | |
hi wildmenu ctermbg=236 | |
hi NonText ctermfg=240 | |
if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore | |
hi Ignore ctermfg=240 | |
endif | |
" normal mode, lighter CursorLine | |
hi CursorLine ctermbg=236 cterm=none | |
if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn | |
hi CursorColumn ctermbg=238 cterm=none | |
else | |
hi CursorColumn ctermbg=239 cterm=none | |
endif | |
endif | |
if exists("g:zenburn_alternate_Error") && g:zenburn_alternate_Error | |
" use more jumpy Error | |
hi Error ctermfg=210 ctermbg=52 gui=bold | |
else | |
" default is something more zenburn-compatible | |
hi Error ctermfg=228 ctermbg=95 gui=bold | |
endif | |
endif | |
if exists("g:zenburn_force_dark_Background") && g:zenburn_force_dark_Background | |
" Force dark background, because of a bug in VIM: VIM sets background | |
" automatically during "hi Normal ctermfg=X"; it misinterprets the high | |
" value (234 or 237 above) as a light color, and wrongly sets background to | |
" light. See ":help highlight" for details. | |
set background=dark | |
endif | |
if exists("g:zenburn_high_Contrast") && g:zenburn_high_Contrast | |
" use new darker background | |
hi Normal guifg=#dcdccc guibg=#1f1f1f | |
hi CursorLine guibg=#121212 gui=bold | |
if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn | |
hi CursorColumn guibg=#121212 gui=bold | |
else | |
hi CursorColumn guibg=#2b2b2b | |
endif | |
hi Pmenu guibg=#242424 guifg=#ccccbc | |
hi PMenuSel guibg=#353a37 guifg=#ccdc90 gui=bold | |
hi PmenuSbar guibg=#2e3330 guifg=#000000 | |
hi PMenuThumb guibg=#a0afa0 guifg=#040404 | |
hi MatchParen guifg=#f0f0c0 guibg=#383838 gui=bold | |
hi SignColumn guifg=#9fafaf guibg=#181818 gui=bold | |
hi TabLineFill guifg=#cfcfaf guibg=#181818 gui=bold | |
hi TabLineSel guifg=#efefef guibg=#1c1c1b gui=bold | |
hi TabLine guifg=#b6bf98 guibg=#181818 gui=bold | |
hi NonText guifg=#404040 gui=bold | |
else | |
" Original, lighter background | |
hi Normal guifg=#dcdccc guibg=#3f3f3f | |
hi CursorLine guibg=#434443 | |
if exists("g:zenburn_unified_CursorColumn") && g:zenburn_unified_CursorColumn | |
hi CursorColumn guibg=#434343 | |
else | |
hi CursorColumn guibg=#4f4f4f | |
endif | |
hi Pmenu guibg=#2c2e2e guifg=#9f9f9f | |
hi PMenuSel guibg=#242424 guifg=#d0d0a0 gui=bold | |
hi PmenuSbar guibg=#2e3330 guifg=#000000 | |
hi PMenuThumb guibg=#a0afa0 guifg=#040404 | |
hi MatchParen guifg=#b2b2a0 guibg=#2e2e2e gui=bold | |
hi SignColumn guifg=#9fafaf guibg=#343434 gui=bold | |
hi TabLineFill guifg=#cfcfaf guibg=#353535 gui=bold | |
hi TabLineSel guifg=#efefef guibg=#3a3a39 gui=bold | |
hi TabLine guifg=#b6bf98 guibg=#353535 gui=bold | |
hi NonText guifg=#5b605e gui=bold | |
endif | |
if exists("g:zenburn_alternate_Visual") && g:zenburn_alternate_Visual | |
" Visual with more contrast, thanks to Steve Hall & Cream posse | |
" gui=none fixes weird highlight problem in at least GVim 7.0.66, thanks to Kurt Maier | |
hi Visual guifg=#000000 guibg=#71d3b4 gui=none | |
hi VisualNOS guifg=#000000 guibg=#71d3b4 gui=none | |
else | |
" use default visual | |
hi Visual guifg=#233323 guibg=#71d3b4 gui=none | |
hi VisualNOS guifg=#233323 guibg=#71d3b4 gui=none | |
endif | |
if exists("g:zenburn_alternate_Error") && g:zenburn_alternate_Error | |
" use more jumpy Error | |
hi Error guifg=#e37170 guibg=#664040 gui=bold | |
else | |
" default is something more zenburn-compatible | |
hi Error guifg=#e37170 guibg=#3d3535 gui=none | |
endif | |
if exists("g:zenburn_alternate_Include") && g:zenburn_alternate_Include | |
" original setting | |
hi Include guifg=#ffcfaf gui=bold | |
else | |
" new, less contrasted one | |
hi Include guifg=#dfaf8f gui=bold | |
endif | |
if exists("g:zenburn_color_also_Ignore") && g:zenburn_color_also_Ignore | |
" color the Ignore groups | |
" note: if you get strange coloring for your files, turn this off (unlet) | |
hi Ignore guifg=#545a4f | |
endif | |
" TODO check for more obscure syntax groups that they're ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment