mirror of
https://github.com/bvanroll/older-dotfiles.git
synced 2025-08-29 20:12:48 +00:00
eeeeeeeeeeeeeeuh
This commit is contained in:
670
.vim/colors/badwolf.vim
Normal file
670
.vim/colors/badwolf.vim
Normal file
@@ -0,0 +1,670 @@
|
||||
" _ _ _ __
|
||||
" | |__ __ _ __| | __ _____ | |/ _|
|
||||
" | '_ \ / _` |/ _` | \ \ /\ / / _ \| | |_
|
||||
" | |_) | (_| | (_| | \ V V / (_) | | _|
|
||||
" |_.__/ \__,_|\__,_| \_/\_/ \___/|_|_|
|
||||
"
|
||||
" I am the Bad Wolf. I create myself.
|
||||
" I take the words. I scatter them in time and space.
|
||||
" A message to lead myself here.
|
||||
"
|
||||
" A Vim colorscheme pieced together by Steve Losh.
|
||||
" Available at http://stevelosh.com/projects/badwolf/
|
||||
"
|
||||
" Why? {{{
|
||||
"
|
||||
" After using Molokai for quite a long time, I started longing for
|
||||
" a replacement.
|
||||
"
|
||||
" I love Molokai's high contrast and gooey, saturated tones, but it can be
|
||||
" a little inconsistent at times.
|
||||
"
|
||||
" Also it's winter here in Rochester, so I wanted a color scheme that's a bit
|
||||
" warmer. A little less blue and a bit more red.
|
||||
"
|
||||
" And so Bad Wolf was born. I'm no designer, but designers have been scattering
|
||||
" beautiful colors through time and space long before I came along. I took
|
||||
" advantage of that and reused some of my favorites to lead me to this scheme.
|
||||
"
|
||||
" }}}
|
||||
|
||||
" Supporting code -------------------------------------------------------------
|
||||
" Preamble {{{
|
||||
|
||||
if !has("gui_running") && &t_Co != 88 && &t_Co != 256
|
||||
finish
|
||||
endif
|
||||
|
||||
set background=dark
|
||||
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name = "badwolf"
|
||||
|
||||
if !exists("g:badwolf_html_link_underline") " {{{
|
||||
let g:badwolf_html_link_underline = 1
|
||||
endif " }}}
|
||||
|
||||
if !exists("g:badwolf_css_props_highlight") " {{{
|
||||
let g:badwolf_css_props_highlight = 0
|
||||
endif " }}}
|
||||
|
||||
" }}}
|
||||
" Palette {{{
|
||||
|
||||
let s:bwc = {}
|
||||
|
||||
" The most basic of all our colors is a slightly tweaked version of the Molokai
|
||||
" Normal text.
|
||||
let s:bwc.plain = ['f8f6f2', 15]
|
||||
|
||||
" Pure and simple.
|
||||
let s:bwc.snow = ['ffffff', 15]
|
||||
let s:bwc.coal = ['000000', 16]
|
||||
|
||||
" All of the Gravel colors are based on a brown from Clouds Midnight.
|
||||
let s:bwc.brightgravel = ['d9cec3', 252]
|
||||
let s:bwc.lightgravel = ['998f84', 245]
|
||||
let s:bwc.gravel = ['857f78', 243]
|
||||
let s:bwc.mediumgravel = ['666462', 241]
|
||||
let s:bwc.deepgravel = ['45413b', 238]
|
||||
let s:bwc.deepergravel = ['35322d', 236]
|
||||
let s:bwc.darkgravel = ['242321', 235]
|
||||
let s:bwc.blackgravel = ['1c1b1a', 233]
|
||||
let s:bwc.blackestgravel = ['141413', 232]
|
||||
|
||||
" A color sampled from a highlight in a photo of a glass of Dale's Pale Ale on
|
||||
" my desk.
|
||||
let s:bwc.dalespale = ['fade3e', 221]
|
||||
|
||||
" A beautiful tan from Tomorrow Night.
|
||||
let s:bwc.dirtyblonde = ['f4cf86', 222]
|
||||
|
||||
" Delicious, chewy red from Made of Code for the poppiest highlights.
|
||||
let s:bwc.taffy = ['ff2c4b', 196]
|
||||
|
||||
" Another chewy accent, but use sparingly!
|
||||
let s:bwc.saltwatertaffy = ['8cffba', 121]
|
||||
|
||||
" The star of the show comes straight from Made of Code.
|
||||
"
|
||||
" You should almost never use this. It should be used for things that denote
|
||||
" 'where the user is', which basically consists of:
|
||||
"
|
||||
" * The cursor
|
||||
" * A REPL prompt
|
||||
let s:bwc.tardis = ['0a9dff', 39]
|
||||
|
||||
" This one's from Mustang, not Florida!
|
||||
let s:bwc.orange = ['ffa724', 214]
|
||||
|
||||
" A limier green from Getafe.
|
||||
let s:bwc.lime = ['aeee00', 154]
|
||||
|
||||
" Rose's dress in The Idiot's Lantern.
|
||||
let s:bwc.dress = ['ff9eb8', 211]
|
||||
|
||||
" Another play on the brown from Clouds Midnight. I love that color.
|
||||
let s:bwc.toffee = ['b88853', 137]
|
||||
|
||||
" Also based on that Clouds Midnight brown.
|
||||
let s:bwc.coffee = ['c7915b', 173]
|
||||
let s:bwc.darkroast = ['88633f', 95]
|
||||
|
||||
" }}}
|
||||
" Highlighting Function {{{
|
||||
function! s:HL(group, fg, ...)
|
||||
" Arguments: group, guifg, guibg, gui, guisp
|
||||
|
||||
let histring = 'hi ' . a:group . ' '
|
||||
|
||||
if strlen(a:fg)
|
||||
if a:fg == 'fg'
|
||||
let histring .= 'guifg=fg ctermfg=fg '
|
||||
else
|
||||
let c = get(s:bwc, a:fg)
|
||||
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
|
||||
endif
|
||||
endif
|
||||
|
||||
if a:0 >= 1 && strlen(a:1)
|
||||
if a:1 == 'bg'
|
||||
let histring .= 'guibg=bg ctermbg=bg '
|
||||
else
|
||||
let c = get(s:bwc, a:1)
|
||||
let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' '
|
||||
endif
|
||||
endif
|
||||
|
||||
if a:0 >= 2 && strlen(a:2)
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
|
||||
if a:0 >= 3 && strlen(a:3)
|
||||
let c = get(s:bwc, a:3)
|
||||
let histring .= 'guisp=#' . c[0] . ' '
|
||||
endif
|
||||
|
||||
" echom histring
|
||||
|
||||
execute histring
|
||||
endfunction
|
||||
" }}}
|
||||
" Configuration Options {{{
|
||||
|
||||
if exists('g:badwolf_darkgutter') && g:badwolf_darkgutter
|
||||
let s:gutter = 'blackestgravel'
|
||||
else
|
||||
let s:gutter = 'blackgravel'
|
||||
endif
|
||||
|
||||
if exists('g:badwolf_tabline')
|
||||
if g:badwolf_tabline == 0
|
||||
let s:tabline = 'blackestgravel'
|
||||
elseif g:badwolf_tabline == 1
|
||||
let s:tabline = 'blackgravel'
|
||||
elseif g:badwolf_tabline == 2
|
||||
let s:tabline = 'darkgravel'
|
||||
elseif g:badwolf_tabline == 3
|
||||
let s:tabline = 'deepgravel'
|
||||
else
|
||||
let s:tabline = 'blackestgravel'
|
||||
endif
|
||||
else
|
||||
let s:tabline = 'blackgravel'
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
" Actual colorscheme ----------------------------------------------------------
|
||||
" Vanilla Vim {{{
|
||||
|
||||
" General/UI {{{
|
||||
|
||||
call s:HL('Normal', 'plain', 'blackgravel')
|
||||
|
||||
call s:HL('Folded', 'mediumgravel', 'bg', 'none')
|
||||
|
||||
call s:HL('VertSplit', 'lightgravel', 'bg', 'none')
|
||||
|
||||
call s:HL('CursorLine', '', 'darkgravel', 'none')
|
||||
call s:HL('CursorColumn', '', 'darkgravel')
|
||||
call s:HL('ColorColumn', '', 'darkgravel')
|
||||
|
||||
call s:HL('TabLine', 'plain', s:tabline, 'none')
|
||||
call s:HL('TabLineFill', 'plain', s:tabline, 'none')
|
||||
call s:HL('TabLineSel', 'coal', 'tardis', 'none')
|
||||
|
||||
call s:HL('MatchParen', 'dalespale', 'darkgravel', 'bold')
|
||||
|
||||
call s:HL('NonText', 'deepgravel', 'bg')
|
||||
call s:HL('SpecialKey', 'deepgravel', 'bg')
|
||||
|
||||
call s:HL('Visual', '', 'deepgravel')
|
||||
call s:HL('VisualNOS', '', 'deepgravel')
|
||||
|
||||
call s:HL('Search', 'coal', 'dalespale', 'bold')
|
||||
call s:HL('IncSearch', 'coal', 'tardis', 'bold')
|
||||
|
||||
call s:HL('Underlined', 'fg', '', 'underline')
|
||||
|
||||
call s:HL('StatusLine', 'coal', 'tardis', 'bold')
|
||||
call s:HL('StatusLineNC', 'snow', 'deepgravel', 'bold')
|
||||
|
||||
call s:HL('Directory', 'dirtyblonde', '', 'bold')
|
||||
|
||||
call s:HL('Title', 'lime')
|
||||
|
||||
call s:HL('ErrorMsg', 'taffy', 'bg', 'bold')
|
||||
call s:HL('MoreMsg', 'dalespale', '', 'bold')
|
||||
call s:HL('ModeMsg', 'dirtyblonde', '', 'bold')
|
||||
call s:HL('Question', 'dirtyblonde', '', 'bold')
|
||||
call s:HL('WarningMsg', 'dress', '', 'bold')
|
||||
|
||||
" This is a ctags tag, not an HTML one. 'Something you can use c-] on'.
|
||||
call s:HL('Tag', '', '', 'bold')
|
||||
|
||||
" hi IndentGuides guibg=#373737
|
||||
" hi WildMenu guifg=#66D9EF guibg=#000000
|
||||
|
||||
" }}}
|
||||
" Gutter {{{
|
||||
|
||||
call s:HL('LineNr', 'mediumgravel', s:gutter)
|
||||
call s:HL('SignColumn', '', s:gutter)
|
||||
call s:HL('FoldColumn', 'mediumgravel', s:gutter)
|
||||
|
||||
" }}}
|
||||
" Cursor {{{
|
||||
|
||||
call s:HL('Cursor', 'coal', 'tardis', 'bold')
|
||||
call s:HL('vCursor', 'coal', 'tardis', 'bold')
|
||||
call s:HL('iCursor', 'coal', 'tardis', 'none')
|
||||
|
||||
" }}}
|
||||
" Syntax highlighting {{{
|
||||
|
||||
" Start with a simple base.
|
||||
call s:HL('Special', 'plain')
|
||||
|
||||
" Comments are slightly brighter than folds, to make 'headers' easier to see.
|
||||
call s:HL('Comment', 'gravel')
|
||||
call s:HL('Todo', 'snow', 'bg', 'bold')
|
||||
call s:HL('SpecialComment', 'snow', 'bg', 'bold')
|
||||
|
||||
" Strings are a nice, pale straw color. Nothing too fancy.
|
||||
call s:HL('String', 'dirtyblonde')
|
||||
|
||||
" Control flow stuff is taffy.
|
||||
call s:HL('Statement', 'taffy', '', 'bold')
|
||||
call s:HL('Keyword', 'taffy', '', 'bold')
|
||||
call s:HL('Conditional', 'taffy', '', 'bold')
|
||||
call s:HL('Operator', 'taffy', '', 'none')
|
||||
call s:HL('Label', 'taffy', '', 'none')
|
||||
call s:HL('Repeat', 'taffy', '', 'none')
|
||||
|
||||
" Functions and variable declarations are orange, because plain looks weird.
|
||||
call s:HL('Identifier', 'orange', '', 'none')
|
||||
call s:HL('Function', 'orange', '', 'none')
|
||||
|
||||
" Preprocessor stuff is lime, to make it pop.
|
||||
"
|
||||
" This includes imports in any given language, because they should usually be
|
||||
" grouped together at the beginning of a file. If they're in the middle of some
|
||||
" other code they should stand out, because something tricky is
|
||||
" probably going on.
|
||||
call s:HL('PreProc', 'lime', '', 'none')
|
||||
call s:HL('Macro', 'lime', '', 'none')
|
||||
call s:HL('Define', 'lime', '', 'none')
|
||||
call s:HL('PreCondit', 'lime', '', 'bold')
|
||||
|
||||
" Constants of all kinds are colored together.
|
||||
" I'm not really happy with the color yet...
|
||||
call s:HL('Constant', 'toffee', '', 'bold')
|
||||
call s:HL('Character', 'toffee', '', 'bold')
|
||||
call s:HL('Boolean', 'toffee', '', 'bold')
|
||||
|
||||
call s:HL('Number', 'toffee', '', 'bold')
|
||||
call s:HL('Float', 'toffee', '', 'bold')
|
||||
|
||||
" Not sure what 'special character in a constant' means, but let's make it pop.
|
||||
call s:HL('SpecialChar', 'dress', '', 'bold')
|
||||
|
||||
call s:HL('Type', 'dress', '', 'none')
|
||||
call s:HL('StorageClass', 'taffy', '', 'none')
|
||||
call s:HL('Structure', 'taffy', '', 'none')
|
||||
call s:HL('Typedef', 'taffy', '', 'bold')
|
||||
|
||||
" Make try/catch blocks stand out.
|
||||
call s:HL('Exception', 'lime', '', 'bold')
|
||||
|
||||
" Misc
|
||||
call s:HL('Error', 'snow', 'taffy', 'bold')
|
||||
call s:HL('Debug', 'snow', '', 'bold')
|
||||
call s:HL('Ignore', 'gravel', '', '')
|
||||
|
||||
" }}}
|
||||
" Completion Menu {{{
|
||||
|
||||
call s:HL('Pmenu', 'plain', 'deepergravel')
|
||||
call s:HL('PmenuSel', 'coal', 'tardis', 'bold')
|
||||
call s:HL('PmenuSbar', '', 'deepergravel')
|
||||
call s:HL('PmenuThumb', 'brightgravel')
|
||||
|
||||
" }}}
|
||||
" Diffs {{{
|
||||
|
||||
call s:HL('DiffDelete', 'coal', 'coal')
|
||||
call s:HL('DiffAdd', '', 'deepergravel')
|
||||
call s:HL('DiffChange', '', 'darkgravel')
|
||||
call s:HL('DiffText', 'snow', 'deepergravel', 'bold')
|
||||
|
||||
" }}}
|
||||
" Spelling {{{
|
||||
|
||||
if has("spell")
|
||||
call s:HL('SpellCap', 'dalespale', 'bg', 'undercurl,bold', 'dalespale')
|
||||
call s:HL('SpellBad', '', 'bg', 'undercurl', 'dalespale')
|
||||
call s:HL('SpellLocal', '', '', 'undercurl', 'dalespale')
|
||||
call s:HL('SpellRare', '', '', 'undercurl', 'dalespale')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
" Plugins {{{
|
||||
|
||||
" CtrlP {{{
|
||||
|
||||
" the message when no match is found
|
||||
call s:HL('CtrlPNoEntries', 'snow', 'taffy', 'bold')
|
||||
|
||||
" the matched pattern
|
||||
call s:HL('CtrlPMatch', 'orange', 'bg', 'none')
|
||||
|
||||
" the line prefix '>' in the match window
|
||||
call s:HL('CtrlPLinePre', 'deepgravel', 'bg', 'none')
|
||||
|
||||
" the prompt’s base
|
||||
call s:HL('CtrlPPrtBase', 'deepgravel', 'bg', 'none')
|
||||
|
||||
" the prompt’s text
|
||||
call s:HL('CtrlPPrtText', 'plain', 'bg', 'none')
|
||||
|
||||
" the prompt’s cursor when moving over the text
|
||||
call s:HL('CtrlPPrtCursor', 'coal', 'tardis', 'bold')
|
||||
|
||||
" 'prt' or 'win', also for 'regex'
|
||||
call s:HL('CtrlPMode1', 'coal', 'tardis', 'bold')
|
||||
|
||||
" 'file' or 'path', also for the local working dir
|
||||
call s:HL('CtrlPMode2', 'coal', 'tardis', 'bold')
|
||||
|
||||
" the scanning status
|
||||
call s:HL('CtrlPStats', 'coal', 'tardis', 'bold')
|
||||
|
||||
" TODO: CtrlP extensions.
|
||||
" CtrlPTabExtra : the part of each line that’s not matched against (Comment)
|
||||
" CtrlPqfLineCol : the line and column numbers in quickfix mode (|s:HL-Search|)
|
||||
" CtrlPUndoT : the elapsed time in undo mode (|s:HL-Directory|)
|
||||
" CtrlPUndoBr : the square brackets [] in undo mode (Comment)
|
||||
" CtrlPUndoNr : the undo number inside [] in undo mode (String)
|
||||
|
||||
" }}}
|
||||
" EasyMotion {{{
|
||||
|
||||
call s:HL('EasyMotionTarget', 'tardis', 'bg', 'bold')
|
||||
call s:HL('EasyMotionShade', 'deepgravel', 'bg')
|
||||
|
||||
" }}}
|
||||
" Interesting Words {{{
|
||||
|
||||
" These are only used if you're me or have copied the <leader>hNUM mappings
|
||||
" from my Vimrc.
|
||||
call s:HL('InterestingWord1', 'coal', 'orange')
|
||||
call s:HL('InterestingWord2', 'coal', 'lime')
|
||||
call s:HL('InterestingWord3', 'coal', 'saltwatertaffy')
|
||||
call s:HL('InterestingWord4', 'coal', 'toffee')
|
||||
call s:HL('InterestingWord5', 'coal', 'dress')
|
||||
call s:HL('InterestingWord6', 'coal', 'taffy')
|
||||
|
||||
|
||||
" }}}
|
||||
" Makegreen {{{
|
||||
|
||||
" hi GreenBar term=reverse ctermfg=white ctermbg=green guifg=coal guibg=#9edf1c
|
||||
" hi RedBar term=reverse ctermfg=white ctermbg=red guifg=white guibg=#C50048
|
||||
|
||||
" }}}
|
||||
" Rainbow Parentheses {{{
|
||||
|
||||
call s:HL('level16c', 'mediumgravel', '', 'bold')
|
||||
call s:HL('level15c', 'dalespale', '', '')
|
||||
call s:HL('level14c', 'dress', '', '')
|
||||
call s:HL('level13c', 'orange', '', '')
|
||||
call s:HL('level12c', 'tardis', '', '')
|
||||
call s:HL('level11c', 'lime', '', '')
|
||||
call s:HL('level10c', 'toffee', '', '')
|
||||
call s:HL('level9c', 'saltwatertaffy', '', '')
|
||||
call s:HL('level8c', 'coffee', '', '')
|
||||
call s:HL('level7c', 'dalespale', '', '')
|
||||
call s:HL('level6c', 'dress', '', '')
|
||||
call s:HL('level5c', 'orange', '', '')
|
||||
call s:HL('level4c', 'tardis', '', '')
|
||||
call s:HL('level3c', 'lime', '', '')
|
||||
call s:HL('level2c', 'toffee', '', '')
|
||||
call s:HL('level1c', 'saltwatertaffy', '', '')
|
||||
|
||||
" }}}
|
||||
" ShowMarks {{{
|
||||
|
||||
call s:HL('ShowMarksHLl', 'tardis', 'blackgravel')
|
||||
call s:HL('ShowMarksHLu', 'tardis', 'blackgravel')
|
||||
call s:HL('ShowMarksHLo', 'tardis', 'blackgravel')
|
||||
call s:HL('ShowMarksHLm', 'tardis', 'blackgravel')
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
" Filetype-specific {{{
|
||||
|
||||
" Clojure {{{
|
||||
|
||||
call s:HL('clojureSpecial', 'taffy', '', '')
|
||||
call s:HL('clojureDefn', 'taffy', '', '')
|
||||
call s:HL('clojureDefMacro', 'taffy', '', '')
|
||||
call s:HL('clojureDefine', 'taffy', '', '')
|
||||
call s:HL('clojureMacro', 'taffy', '', '')
|
||||
call s:HL('clojureCond', 'taffy', '', '')
|
||||
|
||||
call s:HL('clojureKeyword', 'orange', '', 'none')
|
||||
|
||||
call s:HL('clojureFunc', 'dress', '', 'none')
|
||||
call s:HL('clojureRepeat', 'dress', '', 'none')
|
||||
|
||||
call s:HL('clojureParen0', 'lightgravel', '', 'none')
|
||||
|
||||
call s:HL('clojureAnonArg', 'snow', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Common Lisp {{{
|
||||
|
||||
call s:HL('lispFunc', 'lime', '', 'none')
|
||||
call s:HL('lispVar', 'orange', '', 'bold')
|
||||
call s:HL('lispEscapeSpecial', 'orange', '', 'none')
|
||||
|
||||
" }}}
|
||||
" CSS {{{
|
||||
|
||||
if g:badwolf_css_props_highlight
|
||||
call s:HL('cssColorProp', 'taffy', '', 'none')
|
||||
call s:HL('cssBoxProp', 'taffy', '', 'none')
|
||||
call s:HL('cssTextProp', 'taffy', '', 'none')
|
||||
call s:HL('cssRenderProp', 'taffy', '', 'none')
|
||||
call s:HL('cssGeneratedContentProp', 'taffy', '', 'none')
|
||||
else
|
||||
call s:HL('cssColorProp', 'fg', '', 'none')
|
||||
call s:HL('cssBoxProp', 'fg', '', 'none')
|
||||
call s:HL('cssTextProp', 'fg', '', 'none')
|
||||
call s:HL('cssRenderProp', 'fg', '', 'none')
|
||||
call s:HL('cssGeneratedContentProp', 'fg', '', 'none')
|
||||
end
|
||||
|
||||
call s:HL('cssValueLength', 'toffee', '', 'bold')
|
||||
call s:HL('cssColor', 'toffee', '', 'bold')
|
||||
call s:HL('cssBraces', 'lightgravel', '', 'none')
|
||||
call s:HL('cssIdentifier', 'orange', '', 'bold')
|
||||
call s:HL('cssClassName', 'orange', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Diff {{{
|
||||
|
||||
call s:HL('gitDiff', 'lightgravel', '',)
|
||||
|
||||
call s:HL('diffRemoved', 'dress', '',)
|
||||
call s:HL('diffAdded', 'lime', '',)
|
||||
call s:HL('diffFile', 'coal', 'taffy', 'bold')
|
||||
call s:HL('diffNewFile', 'coal', 'taffy', 'bold')
|
||||
|
||||
call s:HL('diffLine', 'coal', 'orange', 'bold')
|
||||
call s:HL('diffSubname', 'orange', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Django Templates {{{
|
||||
|
||||
call s:HL('djangoArgument', 'dirtyblonde', '',)
|
||||
call s:HL('djangoTagBlock', 'orange', '')
|
||||
call s:HL('djangoVarBlock', 'orange', '')
|
||||
" hi djangoStatement guifg=#ff3853 gui=bold
|
||||
" hi djangoVarBlock guifg=#f4cf86
|
||||
|
||||
" }}}
|
||||
" HTML {{{
|
||||
|
||||
" Punctuation
|
||||
call s:HL('htmlTag', 'darkroast', 'bg', 'none')
|
||||
call s:HL('htmlEndTag', 'darkroast', 'bg', 'none')
|
||||
|
||||
" Tag names
|
||||
call s:HL('htmlTagName', 'coffee', '', 'bold')
|
||||
call s:HL('htmlSpecialTagName', 'coffee', '', 'bold')
|
||||
call s:HL('htmlSpecialChar', 'lime', '', 'none')
|
||||
|
||||
" Attributes
|
||||
call s:HL('htmlArg', 'coffee', '', 'none')
|
||||
|
||||
" Stuff inside an <a> tag
|
||||
|
||||
if g:badwolf_html_link_underline
|
||||
call s:HL('htmlLink', 'lightgravel', '', 'underline')
|
||||
else
|
||||
call s:HL('htmlLink', 'lightgravel', '', 'none')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" Java {{{
|
||||
|
||||
call s:HL('javaClassDecl', 'taffy', '', 'bold')
|
||||
call s:HL('javaScopeDecl', 'taffy', '', 'bold')
|
||||
call s:HL('javaCommentTitle', 'gravel', '')
|
||||
call s:HL('javaDocTags', 'snow', '', 'none')
|
||||
call s:HL('javaDocParam', 'dalespale', '', '')
|
||||
|
||||
" }}}
|
||||
" LaTeX {{{
|
||||
|
||||
call s:HL('texStatement', 'tardis', '', 'none')
|
||||
call s:HL('texMathZoneX', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneA', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneB', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneC', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneD', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneE', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneV', 'orange', '', 'none')
|
||||
call s:HL('texMathZoneX', 'orange', '', 'none')
|
||||
call s:HL('texMath', 'orange', '', 'none')
|
||||
call s:HL('texMathMatcher', 'orange', '', 'none')
|
||||
call s:HL('texRefLabel', 'dirtyblonde', '', 'none')
|
||||
call s:HL('texRefZone', 'lime', '', 'none')
|
||||
call s:HL('texComment', 'darkroast', '', 'none')
|
||||
call s:HL('texDelimiter', 'orange', '', 'none')
|
||||
call s:HL('texZone', 'brightgravel', '', 'none')
|
||||
|
||||
augroup badwolf_tex
|
||||
au!
|
||||
|
||||
au BufRead,BufNewFile *.tex syn region texMathZoneV start="\\(" end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup
|
||||
au BufRead,BufNewFile *.tex syn region texMathZoneX start="\$" skip="\\\\\|\\\$" end="\$\|%stopzone\>" keepend contains=@texMathZoneGroup
|
||||
augroup END
|
||||
|
||||
" }}}
|
||||
" LessCSS {{{
|
||||
|
||||
call s:HL('lessVariable', 'lime', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Lispyscript {{{
|
||||
|
||||
call s:HL('lispyscriptDefMacro', 'lime', '', '')
|
||||
call s:HL('lispyscriptRepeat', 'dress', '', 'none')
|
||||
|
||||
" }}}
|
||||
" REPLs {{{
|
||||
" This isn't a specific plugin, but just useful highlight classes for anything
|
||||
" that might want to use them.
|
||||
|
||||
call s:HL('replPrompt', 'tardis', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Mail {{{
|
||||
|
||||
call s:HL('mailSubject', 'orange', '', 'bold')
|
||||
call s:HL('mailHeader', 'lightgravel', '', '')
|
||||
call s:HL('mailHeaderKey', 'lightgravel', '', '')
|
||||
call s:HL('mailHeaderEmail', 'snow', '', '')
|
||||
call s:HL('mailURL', 'toffee', '', 'underline')
|
||||
call s:HL('mailSignature', 'gravel', '', 'none')
|
||||
|
||||
call s:HL('mailQuoted1', 'gravel', '', 'none')
|
||||
call s:HL('mailQuoted2', 'dress', '', 'none')
|
||||
call s:HL('mailQuoted3', 'dirtyblonde', '', 'none')
|
||||
call s:HL('mailQuoted4', 'orange', '', 'none')
|
||||
call s:HL('mailQuoted5', 'lime', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Markdown {{{
|
||||
|
||||
call s:HL('markdownHeadingRule', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownHeadingDelimiter', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownOrderedListMarker', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownListMarker', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownItalic', 'snow', '', 'bold')
|
||||
call s:HL('markdownBold', 'snow', '', 'bold')
|
||||
call s:HL('markdownH1', 'orange', '', 'bold')
|
||||
call s:HL('markdownH2', 'lime', '', 'bold')
|
||||
call s:HL('markdownH3', 'lime', '', 'none')
|
||||
call s:HL('markdownH4', 'lime', '', 'none')
|
||||
call s:HL('markdownH5', 'lime', '', 'none')
|
||||
call s:HL('markdownH6', 'lime', '', 'none')
|
||||
call s:HL('markdownLinkText', 'toffee', '', 'underline')
|
||||
call s:HL('markdownIdDeclaration', 'toffee')
|
||||
call s:HL('markdownAutomaticLink', 'toffee', '', 'bold')
|
||||
call s:HL('markdownUrl', 'toffee', '', 'bold')
|
||||
call s:HL('markdownUrldelimiter', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownLinkDelimiter', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownLinkTextDelimiter', 'lightgravel', '', 'bold')
|
||||
call s:HL('markdownCodeDelimiter', 'dirtyblonde', '', 'bold')
|
||||
call s:HL('markdownCode', 'dirtyblonde', '', 'none')
|
||||
call s:HL('markdownCodeBlock', 'dirtyblonde', '', 'none')
|
||||
|
||||
" }}}
|
||||
" MySQL {{{
|
||||
|
||||
call s:HL('mysqlSpecial', 'dress', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Python {{{
|
||||
|
||||
hi def link pythonOperator Operator
|
||||
call s:HL('pythonBuiltin', 'dress')
|
||||
call s:HL('pythonBuiltinObj', 'dress')
|
||||
call s:HL('pythonBuiltinFunc', 'dress')
|
||||
call s:HL('pythonEscape', 'dress')
|
||||
call s:HL('pythonException', 'lime', '', 'bold')
|
||||
call s:HL('pythonExceptions', 'lime', '', 'none')
|
||||
call s:HL('pythonPrecondit', 'lime', '', 'none')
|
||||
call s:HL('pythonDecorator', 'taffy', '', 'none')
|
||||
call s:HL('pythonRun', 'gravel', '', 'bold')
|
||||
call s:HL('pythonCoding', 'gravel', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" SLIMV {{{
|
||||
|
||||
" Rainbow parentheses
|
||||
call s:HL('hlLevel0', 'gravel')
|
||||
call s:HL('hlLevel1', 'orange')
|
||||
call s:HL('hlLevel2', 'saltwatertaffy')
|
||||
call s:HL('hlLevel3', 'dress')
|
||||
call s:HL('hlLevel4', 'coffee')
|
||||
call s:HL('hlLevel5', 'dirtyblonde')
|
||||
call s:HL('hlLevel6', 'orange')
|
||||
call s:HL('hlLevel7', 'saltwatertaffy')
|
||||
call s:HL('hlLevel8', 'dress')
|
||||
call s:HL('hlLevel9', 'coffee')
|
||||
|
||||
" }}}
|
||||
" Vim {{{
|
||||
|
||||
call s:HL('VimCommentTitle', 'lightgravel', '', 'bold')
|
||||
|
||||
call s:HL('VimMapMod', 'dress', '', 'none')
|
||||
call s:HL('VimMapModKey', 'dress', '', 'none')
|
||||
call s:HL('VimNotation', 'dress', '', 'none')
|
||||
call s:HL('VimBracket', 'dress', '', 'none')
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
|
523
.vim/colors/goodwolf.vim
Normal file
523
.vim/colors/goodwolf.vim
Normal file
@@ -0,0 +1,523 @@
|
||||
" _ _ __
|
||||
" | | | |/ _|
|
||||
" __ _ ___ ___ __| | __ _____ | | |_
|
||||
" / _` |/ _ \ / _ \ / _` | \ \ /\ / / _ \| | _|
|
||||
" | (_| | (_) | (_) | (_| | \ V V / (_) | | |
|
||||
" \__, |\___/ \___/ \__,_| \_/\_/ \___/|_|_|
|
||||
" __/ |
|
||||
" |___/
|
||||
"
|
||||
" :syntax less
|
||||
"
|
||||
" A Vim colorscheme pieced together by Steve Losh.
|
||||
" Available at http://stevelosh.com/projects/badwolf/
|
||||
"
|
||||
" Supporting code -------------------------------------------------------------
|
||||
" Preamble {{{
|
||||
|
||||
if !has("gui_running") && &t_Co != 88 && &t_Co != 256
|
||||
finish
|
||||
endif
|
||||
|
||||
set background=dark
|
||||
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name = "goodwolf"
|
||||
|
||||
if !exists("g:badwolf_html_link_underline") " {{{
|
||||
let g:badwolf_html_link_underline = 1
|
||||
endif " }}}
|
||||
|
||||
" }}}
|
||||
" Palette {{{
|
||||
|
||||
let s:bwc = {}
|
||||
|
||||
" The most basic of all our colors is a slightly tweaked version of the Molokai
|
||||
" Normal text.
|
||||
let s:bwc.plain = ['f8f6f2', 15]
|
||||
|
||||
" Pure and simple.
|
||||
let s:bwc.snow = ['ffffff', 15]
|
||||
let s:bwc.coal = ['000000', 16]
|
||||
|
||||
" All of the Gravel colors are based on a brown from Clouds Midnight.
|
||||
let s:bwc.brightgravel = ['d9cec3', 252]
|
||||
let s:bwc.lightgravel = ['998f84', 245]
|
||||
let s:bwc.gravel = ['857f78', 243]
|
||||
let s:bwc.mediumgravel = ['666462', 241]
|
||||
let s:bwc.deepgravel = ['45413b', 238]
|
||||
let s:bwc.deepergravel = ['35322d', 236]
|
||||
let s:bwc.darkgravel = ['242321', 235]
|
||||
let s:bwc.blackgravel = ['1c1b1a', 233]
|
||||
let s:bwc.blackestgravel = ['141413', 232]
|
||||
|
||||
" A color sampled from a highlight in a photo of a glass of Dale's Pale Ale on
|
||||
" my desk.
|
||||
let s:bwc.dalespale = ['fade3e', 221]
|
||||
|
||||
" A beautiful tan from Tomorrow Night.
|
||||
let s:bwc.dirtyblonde = ['f4cf86', 222]
|
||||
|
||||
" Delicious, chewy red from Made of Code for the poppiest highlights.
|
||||
let s:bwc.taffy = ['ff2c4b', 196]
|
||||
|
||||
" Another chewy accent, but use sparingly!
|
||||
let s:bwc.saltwatertaffy = ['8cffba', 121]
|
||||
|
||||
" The star of the show comes straight from Made of Code.
|
||||
"
|
||||
" You should almost never use this. It should be used for things that denote
|
||||
" 'where the user is', which basically consists of:
|
||||
"
|
||||
" * The cursor
|
||||
" * A REPL prompt
|
||||
let s:bwc.tardis = ['0a9dff', 39]
|
||||
|
||||
" This one's from Mustang, not Florida!
|
||||
let s:bwc.orange = ['ffa724', 214]
|
||||
|
||||
" A limier green from Getafe.
|
||||
let s:bwc.lime = ['aeee00', 154]
|
||||
|
||||
" Rose's dress in The Idiot's Lantern.
|
||||
let s:bwc.dress = ['ff9eb8', 211]
|
||||
|
||||
" Another play on the brown from Clouds Midnight. I love that color.
|
||||
let s:bwc.toffee = ['b88853', 137]
|
||||
|
||||
" Also based on that Clouds Midnight brown.
|
||||
let s:bwc.coffee = ['c7915b', 173]
|
||||
let s:bwc.darkroast = ['88633f', 95]
|
||||
|
||||
" }}}
|
||||
" Highlighting Function {{{
|
||||
function! GoodWolfHL(group, fg, ...)
|
||||
" Arguments: group, guifg, guibg, gui, guisp
|
||||
|
||||
let histring = 'hi ' . a:group . ' '
|
||||
|
||||
if strlen(a:fg)
|
||||
if a:fg == 'fg'
|
||||
let histring .= 'guifg=fg ctermfg=fg '
|
||||
else
|
||||
let c = get(s:bwc, a:fg)
|
||||
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
|
||||
endif
|
||||
endif
|
||||
|
||||
if a:0 >= 1 && strlen(a:1)
|
||||
if a:1 == 'bg'
|
||||
let histring .= 'guibg=bg ctermbg=bg '
|
||||
else
|
||||
let c = get(s:bwc, a:1)
|
||||
let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' '
|
||||
endif
|
||||
endif
|
||||
|
||||
if a:0 >= 2 && strlen(a:2)
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
|
||||
if a:0 >= 3 && strlen(a:3)
|
||||
let c = get(s:bwc, a:3)
|
||||
let histring .= 'guisp=#' . c[0] . ' '
|
||||
endif
|
||||
|
||||
execute histring
|
||||
endfunction
|
||||
|
||||
" }}}
|
||||
" Configuration Options {{{
|
||||
|
||||
if exists('g:badwolf_darkgutter') && g:badwolf_darkgutter
|
||||
let s:gutter = 'blackestgravel'
|
||||
else
|
||||
let s:gutter = 'blackgravel'
|
||||
endif
|
||||
|
||||
if exists('g:badwolf_tabline')
|
||||
if g:badwolf_tabline == 0
|
||||
let s:tabline = 'blackestgravel'
|
||||
elseif g:badwolf_tabline == 1
|
||||
let s:tabline = 'blackgravel'
|
||||
elseif g:badwolf_tabline == 2
|
||||
let s:tabline = 'darkgravel'
|
||||
elseif g:badwolf_tabline == 3
|
||||
let s:tabline = 'deepgravel'
|
||||
else
|
||||
let s:tabline = 'blackestgravel'
|
||||
endif
|
||||
else
|
||||
let s:tabline = 'blackgravel'
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
" Actual colorscheme ----------------------------------------------------------
|
||||
" Vanilla Vim {{{
|
||||
|
||||
" General/UI {{{
|
||||
|
||||
" call GoodWolfHL('Normal', 'plain', 'blackgravel')
|
||||
call GoodWolfHL('Normal', 'plain', 'blackestgravel')
|
||||
|
||||
call GoodWolfHL('Folded', 'mediumgravel', 'bg', 'none')
|
||||
|
||||
call GoodWolfHL('VertSplit', 'lightgravel', 'bg', 'none')
|
||||
|
||||
call GoodWolfHL('CursorLine', '', 'darkgravel', 'none')
|
||||
call GoodWolfHL('CursorColumn', '', 'darkgravel')
|
||||
call GoodWolfHL('ColorColumn', '', 'darkgravel')
|
||||
|
||||
call GoodWolfHL('TabLine', 'plain', s:tabline, 'none')
|
||||
call GoodWolfHL('TabLineFill', 'plain', s:tabline, 'none')
|
||||
call GoodWolfHL('TabLineSel', 'coal', 'tardis', 'none')
|
||||
|
||||
call GoodWolfHL('MatchParen', 'dalespale', 'darkgravel', 'bold')
|
||||
|
||||
call GoodWolfHL('NonText', 'deepgravel', 'bg')
|
||||
call GoodWolfHL('SpecialKey', 'deepgravel', 'bg')
|
||||
|
||||
call GoodWolfHL('Visual', '', 'deepgravel')
|
||||
call GoodWolfHL('VisualNOS', '', 'deepgravel')
|
||||
|
||||
call GoodWolfHL('Search', 'coal', 'dalespale', 'bold')
|
||||
call GoodWolfHL('IncSearch', 'coal', 'tardis', 'bold')
|
||||
|
||||
call GoodWolfHL('Underlined', 'fg', '', 'underline')
|
||||
|
||||
call GoodWolfHL('StatusLine', 'coal', 'tardis', 'bold')
|
||||
call GoodWolfHL('StatusLineNC', 'snow', 'deepgravel', 'none')
|
||||
|
||||
call GoodWolfHL('Directory', 'dirtyblonde', '', 'bold')
|
||||
|
||||
call GoodWolfHL('Title', 'lime')
|
||||
|
||||
call GoodWolfHL('ErrorMsg', 'taffy', 'bg', 'bold')
|
||||
call GoodWolfHL('MoreMsg', 'dalespale', '', 'bold')
|
||||
call GoodWolfHL('ModeMsg', 'dirtyblonde', '', 'bold')
|
||||
call GoodWolfHL('Question', 'dirtyblonde', '', 'bold')
|
||||
call GoodWolfHL('WarningMsg', 'dress', '', 'bold')
|
||||
|
||||
" This is a ctags tag, not an HTML one. 'Something you can use c-] on'.
|
||||
call GoodWolfHL('Tag', '', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Gutter {{{
|
||||
|
||||
call GoodWolfHL('LineNr', 'mediumgravel', s:gutter)
|
||||
call GoodWolfHL('SignColumn', '', s:gutter)
|
||||
call GoodWolfHL('FoldColumn', 'mediumgravel', s:gutter)
|
||||
|
||||
" }}}
|
||||
" Cursor {{{
|
||||
|
||||
call GoodWolfHL('Cursor', 'coal', 'tardis', 'bold')
|
||||
call GoodWolfHL('vCursor', 'coal', 'tardis', 'bold')
|
||||
call GoodWolfHL('iCursor', 'coal', 'tardis', 'none')
|
||||
|
||||
" }}}
|
||||
" Syntax highlighting {{{
|
||||
|
||||
" Start with a simple base.
|
||||
call GoodWolfHL('Special', 'plain')
|
||||
|
||||
" Comments are slightly brighter than folds, to make 'headers' easier to see.
|
||||
call GoodWolfHL('Comment', 'gravel', 'bg', 'none')
|
||||
call GoodWolfHL('Todo', 'snow', 'bg', 'bold')
|
||||
call GoodWolfHL('SpecialComment', 'snow', 'bg', 'bold')
|
||||
|
||||
" Strings are highlighted separately.
|
||||
call GoodWolfHL('String', 'lightgravel', '', 'bold')
|
||||
|
||||
" Turn off everything else
|
||||
call GoodWolfHL('Statement', 'plain', '', 'none')
|
||||
call GoodWolfHL('Keyword', 'plain', '', 'none')
|
||||
call GoodWolfHL('Conditional', 'plain', '', 'none')
|
||||
call GoodWolfHL('Operator', 'plain', '', 'none')
|
||||
call GoodWolfHL('Label', 'plain', '', 'none')
|
||||
call GoodWolfHL('Repeat', 'plain', '', 'none')
|
||||
call GoodWolfHL('Identifier', 'plain', '', 'none')
|
||||
call GoodWolfHL('Function', 'plain', '', 'none')
|
||||
call GoodWolfHL('PreProc', 'plain', '', 'none')
|
||||
call GoodWolfHL('Macro', 'plain', '', 'none')
|
||||
call GoodWolfHL('Define', 'plain', '', 'none')
|
||||
call GoodWolfHL('PreCondit', 'plain', '', 'none')
|
||||
call GoodWolfHL('Constant', 'plain', '', 'none')
|
||||
call GoodWolfHL('Character', 'plain', '', 'none')
|
||||
call GoodWolfHL('Boolean', 'plain', '', 'none')
|
||||
call GoodWolfHL('Number', 'plain', '', 'none')
|
||||
call GoodWolfHL('Float', 'plain', '', 'none')
|
||||
call GoodWolfHL('Type', 'plain', '', 'none')
|
||||
call GoodWolfHL('StorageClass', 'plain', '', 'none')
|
||||
call GoodWolfHL('Structure', 'plain', '', 'none')
|
||||
call GoodWolfHL('Typedef', 'plain', '', 'none')
|
||||
call GoodWolfHL('Exception', 'plain', '', 'none')
|
||||
|
||||
" Not sure what 'special character in a constant' means, but let's make it pop.
|
||||
call GoodWolfHL('SpecialChar', 'plain', '', 'bold')
|
||||
|
||||
" Misc
|
||||
call GoodWolfHL('Error', 'snow', 'taffy', 'bold')
|
||||
call GoodWolfHL('Debug', 'snow', '', 'bold')
|
||||
call GoodWolfHL('Ignore', 'gravel', '', '')
|
||||
|
||||
" }}}
|
||||
" Completion Menu {{{
|
||||
|
||||
call GoodWolfHL('Pmenu', 'plain', 'deepergravel')
|
||||
call GoodWolfHL('PmenuSel', 'coal', 'tardis', 'bold')
|
||||
call GoodWolfHL('PmenuSbar', '', 'deepergravel')
|
||||
call GoodWolfHL('PmenuThumb', 'brightgravel')
|
||||
|
||||
" }}}
|
||||
" Diffs {{{
|
||||
|
||||
call GoodWolfHL('DiffDelete', 'coal', 'coal')
|
||||
call GoodWolfHL('DiffAdd', '', 'deepergravel')
|
||||
call GoodWolfHL('DiffChange', '', 'darkgravel')
|
||||
call GoodWolfHL('DiffText', 'snow', 'deepergravel', 'bold')
|
||||
|
||||
" }}}
|
||||
" Spelling {{{
|
||||
|
||||
if has("spell")
|
||||
call GoodWolfHL('SpellCap', 'dalespale', 'bg', 'undercurl,bold', 'dalespale')
|
||||
call GoodWolfHL('SpellBad', '', 'bg', 'undercurl', 'dalespale')
|
||||
call GoodWolfHL('SpellLocal', '', '', 'undercurl', 'dalespale')
|
||||
call GoodWolfHL('SpellRare', '', '', 'undercurl', 'dalespale')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" Status Line Utils {{{
|
||||
|
||||
call GoodWolfHL('GWStatusLineMode', 'coal', 'lime')
|
||||
call GoodWolfHL('GWStatusLineModeX', 'lime', 'deepergravel')
|
||||
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
" Plugins {{{
|
||||
|
||||
" Clam {{{
|
||||
|
||||
" hg status
|
||||
call GoodWolfHL('clamHgStatusAdded', 'lime', '', 'none')
|
||||
call GoodWolfHL('clamHgStatusModified', 'saltwatertaffy', '', 'none')
|
||||
call GoodWolfHL('clamHgStatusRemoved', 'toffee', '', 'none')
|
||||
call GoodWolfHL('clamHgStatusUnknown', 'taffy', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" CtrlP {{{
|
||||
|
||||
" the message when no match is found
|
||||
call GoodWolfHL('CtrlPNoEntries', 'snow', 'taffy', 'bold')
|
||||
|
||||
" the matched pattern
|
||||
call GoodWolfHL('CtrlPMatch', 'dress', 'bg', 'bold')
|
||||
|
||||
" the line prefix '>' in the match window
|
||||
call GoodWolfHL('CtrlPLinePre', 'deepgravel', 'bg', 'none')
|
||||
|
||||
" the prompt’s base
|
||||
call GoodWolfHL('CtrlPPrtBase', 'deepgravel', 'bg', 'none')
|
||||
|
||||
" the prompt’s text
|
||||
call GoodWolfHL('CtrlPPrtText', 'plain', 'bg', 'none')
|
||||
|
||||
" the prompt’s cursor when moving over the text
|
||||
call GoodWolfHL('CtrlPPrtCursor', 'coal', 'tardis', 'bold')
|
||||
|
||||
" 'prt' or 'win', also for 'regex'
|
||||
call GoodWolfHL('CtrlPMode1', 'coal', 'tardis', 'bold')
|
||||
|
||||
" 'file' or 'path', also for the local working dir
|
||||
call GoodWolfHL('CtrlPMode2', 'coal', 'tardis', 'bold')
|
||||
|
||||
" the scanning status
|
||||
call GoodWolfHL('CtrlPStats', 'coal', 'tardis', 'bold')
|
||||
|
||||
" }}}
|
||||
" Interesting Words {{{
|
||||
|
||||
" These are only used if you're me or have copied the <leader>hNUM mappings
|
||||
" from my Vimrc.
|
||||
call GoodWolfHL('InterestingWord1', 'coal', 'orange')
|
||||
call GoodWolfHL('InterestingWord2', 'coal', 'lime')
|
||||
call GoodWolfHL('InterestingWord3', 'coal', 'saltwatertaffy')
|
||||
call GoodWolfHL('InterestingWord4', 'coal', 'toffee')
|
||||
call GoodWolfHL('InterestingWord5', 'coal', 'dress')
|
||||
call GoodWolfHL('InterestingWord6', 'coal', 'taffy')
|
||||
|
||||
" }}}
|
||||
" Rainbow Parentheses {{{
|
||||
|
||||
call GoodWolfHL('level1c', 'mediumgravel', '', 'bold')
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
" Filetype-specific {{{
|
||||
|
||||
" Clojure {{{
|
||||
|
||||
call GoodWolfHL('clojureParen0', 'lightgravel', '', 'none')
|
||||
call GoodWolfHL('clojureAnonArg', 'snow', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" CSS {{{
|
||||
|
||||
call GoodWolfHL('cssBraces', 'lightgravel', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Diff {{{
|
||||
|
||||
call GoodWolfHL('gitDiff', 'lightgravel', '',)
|
||||
|
||||
call GoodWolfHL('diffRemoved', 'dress', '',)
|
||||
call GoodWolfHL('diffAdded', 'lime', '',)
|
||||
call GoodWolfHL('diffFile', 'coal', 'toffee', 'bold')
|
||||
call GoodWolfHL('diffNewFile', 'coal', 'toffee', 'bold')
|
||||
|
||||
call GoodWolfHL('diffLine', 'coal', 'orange', 'bold')
|
||||
call GoodWolfHL('diffSubname', 'orange', '', 'none')
|
||||
|
||||
" }}}
|
||||
" HTML {{{
|
||||
|
||||
" Punctuation
|
||||
call GoodWolfHL('htmlTag', 'darkroast', 'bg', 'none')
|
||||
call GoodWolfHL('htmlEndTag', 'darkroast', 'bg', 'none')
|
||||
|
||||
" Tag names
|
||||
call GoodWolfHL('htmlTagName', 'coffee', '', 'bold')
|
||||
call GoodWolfHL('htmlSpecialTagName', 'coffee', '', 'bold')
|
||||
call GoodWolfHL('htmlSpecialChar', 'lime', '', 'none')
|
||||
|
||||
" Attributes
|
||||
call GoodWolfHL('htmlArg', 'coffee', '', 'none')
|
||||
|
||||
" Stuff inside an <a> tag
|
||||
|
||||
if g:badwolf_html_link_underline
|
||||
call GoodWolfHL('htmlLink', 'lightgravel', '', 'underline')
|
||||
else
|
||||
call GoodWolfHL('htmlLink', 'lightgravel', '', 'none')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" Java {{{
|
||||
|
||||
call GoodWolfHL('javaCommentTitle', 'gravel', '')
|
||||
call GoodWolfHL('javaDocTags', 'snow', '', 'none')
|
||||
call GoodWolfHL('javaDocParam', 'plain', '', '')
|
||||
|
||||
" }}}
|
||||
" LaTeX {{{
|
||||
|
||||
call GoodWolfHL('texStatement', 'dress', '', 'none')
|
||||
call GoodWolfHL('texDocType', 'dress', '', 'none')
|
||||
call GoodWolfHL('texSection', 'dress', '', 'none')
|
||||
call GoodWolfHL('texBeginEnd', 'dress', '', 'none')
|
||||
|
||||
call GoodWolfHL('texMathZoneX', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneA', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneB', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneC', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneD', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneE', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneV', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathZoneX', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMath', 'orange', '', 'none')
|
||||
call GoodWolfHL('texMathMatcher', 'orange', '', 'none')
|
||||
call GoodWolfHL('texRefLabel', 'dirtyblonde', '', 'none')
|
||||
call GoodWolfHL('texRefZone', 'lime', '', 'none')
|
||||
call GoodWolfHL('texDelimiter', 'orange', '', 'none')
|
||||
call GoodWolfHL('texZone', 'brightgravel', '', 'none')
|
||||
|
||||
augroup badwolf_tex
|
||||
au!
|
||||
|
||||
au BufRead,BufNewFile *.tex syn region texMathZoneV start="\\(" end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup
|
||||
au BufRead,BufNewFile *.tex syn region texMathZoneX start="\$" skip="\\\\\|\\\$" end="\$\|%stopzone\>" keepend contains=@texMathZoneGroup
|
||||
augroup END
|
||||
|
||||
" }}}
|
||||
" REPLs {{{
|
||||
" This isn't a specific plugin, but just useful highlight classes for anything
|
||||
" that might want to use them.
|
||||
|
||||
call GoodWolfHL('replPrompt', 'tardis', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Mail {{{
|
||||
|
||||
call GoodWolfHL('mailSubject', 'orange', '', 'bold')
|
||||
call GoodWolfHL('mailHeader', 'lightgravel', '', '')
|
||||
call GoodWolfHL('mailHeaderKey', 'lightgravel', '', '')
|
||||
call GoodWolfHL('mailHeaderEmail', 'snow', '', '')
|
||||
call GoodWolfHL('mailURL', 'toffee', '', 'underline')
|
||||
call GoodWolfHL('mailSignature', 'gravel', '', 'none')
|
||||
|
||||
call GoodWolfHL('mailQuoted1', 'gravel', '', 'none')
|
||||
call GoodWolfHL('mailQuoted2', 'dress', '', 'none')
|
||||
call GoodWolfHL('mailQuoted3', 'dirtyblonde', '', 'none')
|
||||
call GoodWolfHL('mailQuoted4', 'orange', '', 'none')
|
||||
call GoodWolfHL('mailQuoted5', 'lime', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Markdown {{{
|
||||
|
||||
call GoodWolfHL('markdownHeadingRule', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownHeadingDelimiter', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownOrderedListMarker', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownListMarker', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownItalic', 'snow', '', 'bold')
|
||||
call GoodWolfHL('markdownBold', 'snow', '', 'bold')
|
||||
call GoodWolfHL('markdownH1', 'orange', '', 'bold')
|
||||
call GoodWolfHL('markdownH2', 'lime', '', 'bold')
|
||||
call GoodWolfHL('markdownH3', 'lime', '', 'none')
|
||||
call GoodWolfHL('markdownH4', 'lime', '', 'none')
|
||||
call GoodWolfHL('markdownH5', 'lime', '', 'none')
|
||||
call GoodWolfHL('markdownH6', 'lime', '', 'none')
|
||||
call GoodWolfHL('markdownLinkText', 'toffee', '', 'underline')
|
||||
call GoodWolfHL('markdownIdDeclaration', 'toffee')
|
||||
call GoodWolfHL('markdownAutomaticLink', 'toffee', '', 'bold')
|
||||
call GoodWolfHL('markdownUrl', 'toffee', '', 'bold')
|
||||
call GoodWolfHL('markdownUrldelimiter', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownLinkDelimiter', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownLinkTextDelimiter', 'lightgravel', '', 'bold')
|
||||
call GoodWolfHL('markdownCodeDelimiter', 'dirtyblonde', '', 'bold')
|
||||
call GoodWolfHL('markdownCode', 'dirtyblonde', '', 'none')
|
||||
call GoodWolfHL('markdownCodeBlock', 'dirtyblonde', '', 'none')
|
||||
|
||||
" }}}
|
||||
" Python {{{
|
||||
|
||||
hi def link pythonOperator Operator
|
||||
call GoodWolfHL('pythonBuiltin', 'plain')
|
||||
call GoodWolfHL('pythonBuiltinObj', 'plain')
|
||||
call GoodWolfHL('pythonBuiltinFunc', 'plain')
|
||||
call GoodWolfHL('pythonEscape', 'plain')
|
||||
call GoodWolfHL('pythonException', 'plain', '', 'none')
|
||||
call GoodWolfHL('pythonExceptions', 'plain', '', 'none')
|
||||
call GoodWolfHL('pythonPrecondit', 'plain', '', 'none')
|
||||
call GoodWolfHL('pythonDecorator', 'plain', '', 'none')
|
||||
call GoodWolfHL('pythonRun', 'plain', '', 'none')
|
||||
call GoodWolfHL('pythonCoding', 'plain', '', 'bold')
|
||||
|
||||
" }}}
|
||||
" Vim {{{
|
||||
|
||||
call GoodWolfHL('helpHyperTextJump', 'dress', '', 'none')
|
||||
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
|
||||
|
538
.vim/colors/ps_color.vim
Normal file
538
.vim/colors/ps_color.vim
Normal file
@@ -0,0 +1,538 @@
|
||||
" Vim colour file --- PSC
|
||||
" Maintainer: Pan, Shi Zhu <Go to the following URL for my email>
|
||||
" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760
|
||||
" Last Change: 23 Oct 2006
|
||||
" Version: 3.00
|
||||
"
|
||||
" Please prepend [VIM] in the title when writing e-mail to me, or it will
|
||||
" be automatically treated as spam and removed.
|
||||
"
|
||||
" See the help document for all details, the help document will be
|
||||
" installed after the script has been sourced once, do not open the
|
||||
" script when you source it for the first time.
|
||||
"
|
||||
|
||||
" Initializations: {{{1
|
||||
"
|
||||
|
||||
" without user_commands, all these are not possible
|
||||
if !has("user_commands")
|
||||
finish
|
||||
end
|
||||
|
||||
" Init the option to the default value if not defined by user.
|
||||
function! s:init_option(var, value)
|
||||
if !exists("g:psc_".a:var)
|
||||
execute "let s:".a:var." = ".a:value
|
||||
else
|
||||
let s:{a:var} = g:psc_{a:var}
|
||||
endif
|
||||
endfunction
|
||||
command! -nargs=+ InitOpt call s:init_option(<f-args>)
|
||||
|
||||
" give highlight setting to multiple highlight groups, maximum 20
|
||||
function! s:multi_hi(setting, ...)
|
||||
let l:idx = a:0
|
||||
while l:idx > 0
|
||||
let l:hlgroup = a:{l:idx}
|
||||
execute "highlight ".l:hlgroup." ".a:setting
|
||||
let l:idx = l:idx - 1
|
||||
endwhile
|
||||
endfunction
|
||||
command! -nargs=+ MultiHi call s:multi_hi(<f-args>)
|
||||
|
||||
InitOpt style 'cool'
|
||||
InitOpt cterm_transparent 0
|
||||
InitOpt inversed_todo 0
|
||||
InitOpt use_default_for_cterm 0
|
||||
InitOpt statement_different_from_type 0
|
||||
|
||||
if !has("gui_running")
|
||||
call s:init_option("cterm_style", "'".s:style."'")
|
||||
|
||||
if s:use_default_for_cterm==1 | let s:cterm_style = 'default'
|
||||
elseif s:use_default_for_cterm==2 | let s:cterm_style = 'defdark'
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
InitOpt other_style 0
|
||||
|
||||
" WJMc had changed a version of this, however, it will messed up some features
|
||||
" when the psc_style being other values than 'warm' and 'cool'. The psc_style
|
||||
" is designed to accept any colorscheme name, such as 'desert'. The following
|
||||
" code follows the basic principle of WJMc's code.
|
||||
if &background=='light'
|
||||
if has("gui_running")
|
||||
if s:style=='warm' || s:style=='default'
|
||||
" nothing to do
|
||||
elseif s:style=='cool'
|
||||
let s:style = 'warm'
|
||||
elseif s:style=='defdark'
|
||||
let s:style = 'default'
|
||||
else
|
||||
let s:other_style = 1
|
||||
endif
|
||||
else
|
||||
if s:cterm_style=='cool' || s:cterm_style=='defdark' || s:cterm_style=='warm'
|
||||
let s:cterm_style='default'
|
||||
elseif s:cterm_style=='default'
|
||||
" nothing to do
|
||||
else
|
||||
let s:other_style = 1
|
||||
endif
|
||||
endif
|
||||
elseif &background=='dark'
|
||||
if s:style=='warm'
|
||||
let s:style = 'cool'
|
||||
elseif s:style=='default'
|
||||
let s:style = 'defdark'
|
||||
elseif s:style=='cool' || s:style=='defdark'
|
||||
" nothing to do
|
||||
else
|
||||
let s:other_style = 1
|
||||
endif
|
||||
let s:cterm_style = s:style
|
||||
else
|
||||
echo "unrecognized background=" &background ", ps_color halt.\n"
|
||||
finish
|
||||
endif
|
||||
|
||||
" This should be after the style mangling
|
||||
if s:style == 'warm'
|
||||
InitOpt fontface 'mixed'
|
||||
else
|
||||
InitOpt fontface 'plain'
|
||||
endif
|
||||
|
||||
|
||||
" === Traditional Color Scheme script starts here. ===
|
||||
highlight clear
|
||||
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let s:color_name = expand("<sfile>:t:r")
|
||||
|
||||
if s:other_style==0
|
||||
let g:colors_name = s:color_name
|
||||
" Go from console version to gui, the color scheme should be sourced again
|
||||
execute "autocmd TermChanged * if g:colors_name == '".s:color_name."' | "
|
||||
\."colo ".s:color_name." | endif"
|
||||
else
|
||||
execute "runtime colors/".s:style.".vim"
|
||||
endif
|
||||
|
||||
" Command to go different schemes easier.
|
||||
" This is a multi-purpose command, might be a poor design.
|
||||
" WJMc had a change for this, but the 'reloaded' style and other colorscheme
|
||||
" cannot be launched that way.
|
||||
execute "command! -nargs=1 Colo if '".s:color_name."'!=\"<args>\" |".
|
||||
\'let g:psc_style = "<args>"| endif |'.
|
||||
\'if g:psc_style=="warm" | set background=light | endif |'.
|
||||
\'if g:psc_style=="cool" | set background=dark | endif |'.
|
||||
\'colo '.s:color_name
|
||||
|
||||
" Give control to 'reloaded' scheme if possible
|
||||
if s:style == 'reloaded'
|
||||
finish
|
||||
endif
|
||||
|
||||
" }}}1
|
||||
|
||||
" Relevant Help:
|
||||
" :h highlight-groups
|
||||
" :h psc-cterm-color-table
|
||||
" :ru syntax/hitest.vim
|
||||
"
|
||||
" Hard coded Colors Comment:
|
||||
" #aabbcc = Red aa, Green bb, Blue cc
|
||||
" we must use hard-coded colours to get more 'tender' colours
|
||||
"
|
||||
|
||||
|
||||
" GUI:
|
||||
"
|
||||
" I don't want to abuse folding, but here folding is used to avoid confusion.
|
||||
if s:style=='warm'
|
||||
" Warm style for gui here {{{2
|
||||
" LIGHT COLOR DEFINE START
|
||||
|
||||
highlight Normal guifg=#000000 guibg=#e0e0e0
|
||||
highlight Search guifg=NONE guibg=#f8f8f8
|
||||
highlight Visual guifg=NONE guibg=#a6caf0
|
||||
highlight Cursor guifg=#f0f0f0 guibg=#008000
|
||||
" The idea of CursorIM is pretty good, however, the feature is still buggy
|
||||
" in the current version (Vim 7.0).
|
||||
" The following line will be kept commented until the bug fixed.
|
||||
"
|
||||
" highlight CursorIM guifg=#f0f0f0 guibg=#800080
|
||||
highlight Special guifg=#907000 guibg=NONE
|
||||
highlight Comment guifg=#606000 guibg=NONE
|
||||
highlight Number guifg=#907000 guibg=NONE
|
||||
highlight Constant guifg=#007068 guibg=NONE
|
||||
highlight StatusLine guifg=fg guibg=#a6caf0
|
||||
highlight LineNr guifg=#686868 guibg=NONE
|
||||
highlight Question guifg=fg guibg=#d0d090
|
||||
highlight PreProc guifg=#009030 guibg=NONE
|
||||
if s:statement_different_from_type==1
|
||||
highlight Statement guifg=#4020a0 guibg=NONE
|
||||
else
|
||||
highlight Statement guifg=#2060a8 guibg=NONE
|
||||
endif
|
||||
highlight Type guifg=#0850a0 guibg=NONE
|
||||
if s:inversed_todo==1
|
||||
highlight Todo guifg=#e0e090 guibg=#000080
|
||||
else
|
||||
highlight Todo guifg=#800000 guibg=#e0e090
|
||||
endif
|
||||
" NOTE THIS IS IN THE WARM SECTION
|
||||
highlight Error guifg=#c03000 guibg=NONE
|
||||
highlight Identifier guifg=#a030a0 guibg=NONE
|
||||
highlight ModeMsg guifg=fg guibg=#b0b0e0
|
||||
highlight VisualNOS guifg=fg guibg=#b0b0e0
|
||||
highlight SpecialKey guifg=#1050a0 guibg=NONE
|
||||
highlight NonText guifg=#002090 guibg=#d0d0d0
|
||||
highlight Directory guifg=#a030a0 guibg=NONE
|
||||
highlight ErrorMsg guifg=fg guibg=#f0b090
|
||||
highlight MoreMsg guifg=#489000 guibg=NONE
|
||||
highlight Title guifg=#a030a0 guibg=NONE
|
||||
highlight WarningMsg guifg=#b02000 guibg=NONE
|
||||
highlight WildMenu guifg=fg guibg=#d0d090
|
||||
highlight Folded guifg=NONE guibg=#b0e0b0
|
||||
highlight FoldColumn guifg=fg guibg=#90e090
|
||||
highlight DiffAdd guifg=NONE guibg=#b0b0e0
|
||||
highlight DiffChange guifg=NONE guibg=#e0b0e0
|
||||
highlight DiffDelete guifg=#002090 guibg=#d0d0d0
|
||||
highlight DiffText guifg=NONE guibg=#c0e080
|
||||
highlight SignColumn guifg=fg guibg=#90e090
|
||||
highlight IncSearch guifg=#f0f0f0 guibg=#806060
|
||||
highlight StatusLineNC guifg=fg guibg=#c0c0c0
|
||||
highlight VertSplit guifg=fg guibg=#c0c0c0
|
||||
highlight Underlined guifg=#6a5acd guibg=NONE gui=underline
|
||||
highlight Ignore guifg=bg guibg=NONE
|
||||
" NOTE THIS IS IN THE WARM SECTION
|
||||
if v:version >= 700
|
||||
if has('spell')
|
||||
highlight SpellBad guifg=NONE guibg=NONE guisp=#c03000
|
||||
highlight SpellCap guifg=NONE guibg=NONE guisp=#2060a8
|
||||
highlight SpellRare guifg=NONE guibg=NONE guisp=#a030a0
|
||||
highlight SpellLocal guifg=NONE guibg=NONE guisp=#007068
|
||||
endif
|
||||
highlight Pmenu guifg=fg guibg=#e0b0e0
|
||||
highlight PmenuSel guifg=#f0f0f0 guibg=#806060
|
||||
highlight PmenuSbar guifg=fg guibg=#c0c0c0
|
||||
highlight PmenuThumb guifg=fg guibg=#c0e080
|
||||
highlight TabLine guifg=fg guibg=#c0c0c0 gui=underline
|
||||
highlight TabLineFill guifg=fg guibg=#c0c0c0 gui=underline
|
||||
highlight TabLineSel guifg=fg guibg=NONE
|
||||
highlight CursorColumn guifg=NONE guibg=#f0b090
|
||||
highlight CursorLine guifg=NONE guibg=NONE gui=underline
|
||||
highlight MatchParen guifg=NONE guibg=#c0e080
|
||||
endif
|
||||
|
||||
" LIGHT COLOR DEFINE END
|
||||
" }}}2
|
||||
elseif s:style=='cool'
|
||||
" Cool style for gui here {{{2
|
||||
" DARK COLOR DEFINE START
|
||||
|
||||
highlight Normal guifg=#d0d0d0 guibg=#202020
|
||||
highlight Comment guifg=#d0d090 guibg=NONE
|
||||
highlight Constant guifg=#80c0e0 guibg=NONE
|
||||
highlight Number guifg=#e0c060 guibg=NONE
|
||||
highlight Identifier guifg=#f0c0f0 guibg=NONE
|
||||
if s:statement_different_from_type==1
|
||||
highlight Statement guifg=#98a8f0 guibg=NONE
|
||||
else
|
||||
highlight Statement guifg=#c0d8f8 guibg=NONE
|
||||
endif
|
||||
highlight PreProc guifg=#60f080 guibg=NONE
|
||||
highlight Type guifg=#b0d0f0 guibg=NONE
|
||||
highlight Special guifg=#e0c060 guibg=NONE
|
||||
highlight Error guifg=#f08060 guibg=NONE
|
||||
if s:inversed_todo==1
|
||||
highlight Todo guifg=#d0d090 guibg=#000080
|
||||
else
|
||||
highlight Todo guifg=#800000 guibg=#d0d090
|
||||
endif
|
||||
highlight Search guifg=NONE guibg=#800000
|
||||
highlight Visual guifg=#000000 guibg=#a6caf0
|
||||
highlight Cursor guifg=#000000 guibg=#00f000
|
||||
" NOTE THIS IS IN THE COOL SECTION
|
||||
" highlight CursorIM guifg=#000000 guibg=#f000f0
|
||||
highlight StatusLine guifg=#000000 guibg=#a6caf0
|
||||
highlight LineNr guifg=#b0b0b0 guibg=NONE
|
||||
highlight Question guifg=#000000 guibg=#d0d090
|
||||
highlight ModeMsg guifg=fg guibg=#000080
|
||||
highlight VisualNOS guifg=fg guibg=#000080
|
||||
highlight SpecialKey guifg=#b0d0f0 guibg=NONE
|
||||
highlight NonText guifg=#6080f0 guibg=#101010
|
||||
highlight Directory guifg=#80c0e0 guibg=NONE
|
||||
highlight ErrorMsg guifg=#d0d090 guibg=#800000
|
||||
highlight MoreMsg guifg=#c0e080 guibg=NONE
|
||||
highlight Title guifg=#f0c0f0 guibg=NONE
|
||||
highlight WarningMsg guifg=#f08060 guibg=NONE
|
||||
highlight WildMenu guifg=#000000 guibg=#d0d090
|
||||
highlight Folded guifg=NONE guibg=#004000
|
||||
highlight FoldColumn guifg=#e0e0e0 guibg=#008000
|
||||
highlight DiffAdd guifg=NONE guibg=#000080
|
||||
highlight DiffChange guifg=NONE guibg=#800080
|
||||
highlight DiffDelete guifg=#6080f0 guibg=#202020
|
||||
highlight DiffText guifg=#000000 guibg=#c0e080
|
||||
highlight SignColumn guifg=#e0e0e0 guibg=#008000
|
||||
highlight IncSearch guifg=#000000 guibg=#d0d0d0
|
||||
highlight StatusLineNC guifg=#000000 guibg=#c0c0c0
|
||||
highlight VertSplit guifg=#000000 guibg=#c0c0c0
|
||||
highlight Underlined guifg=#80a0ff guibg=NONE gui=underline
|
||||
highlight Ignore guifg=#000000 guibg=NONE
|
||||
" NOTE THIS IS IN THE COOL SECTION
|
||||
if v:version >= 700
|
||||
if has('spell')
|
||||
highlight SpellBad guifg=NONE guibg=NONE guisp=#f08060
|
||||
highlight SpellCap guifg=NONE guibg=NONE guisp=#6080f0
|
||||
highlight SpellRare guifg=NONE guibg=NONE guisp=#f0c0f0
|
||||
highlight SpellLocal guifg=NONE guibg=NONE guisp=#c0d8f8
|
||||
endif
|
||||
highlight Pmenu guifg=fg guibg=#800080
|
||||
highlight PmenuSel guifg=#000000 guibg=#d0d0d0
|
||||
highlight PmenuSbar guifg=fg guibg=#000080
|
||||
highlight PmenuThumb guifg=fg guibg=#008000
|
||||
highlight TabLine guifg=fg guibg=#008000 gui=underline
|
||||
highlight TabLineFill guifg=fg guibg=#008000 gui=underline
|
||||
highlight TabLineSel guifg=fg guibg=NONE
|
||||
highlight CursorColumn guifg=NONE guibg=#800000
|
||||
highlight CursorLine guifg=NONE guibg=NONE gui=underline
|
||||
highlight MatchParen guifg=NONE guibg=#800080
|
||||
endif
|
||||
|
||||
" DARK COLOR DEFINE END
|
||||
" }}}2
|
||||
elseif s:style=='defdark'
|
||||
highlight Normal guifg=#f0f0f0 guibg=#000000
|
||||
endif
|
||||
|
||||
" Take NT gui for example, If you want to use a console font such as
|
||||
" Lucida_Console with font size larger than 14, the font looks already thick,
|
||||
" and the bold font for that will be too thick, you may not want it be bold.
|
||||
" The following code does this.
|
||||
"
|
||||
" All of the bold font may be disabled, since continuously switching between
|
||||
" bold and plain font hurts consistency and will inevitably fatigue your eye!
|
||||
|
||||
" Maximum 20 parameters for vim script function
|
||||
"
|
||||
MultiHi gui=NONE ModeMsg Search Cursor Special Comment Constant Number LineNr Question PreProc Statement Type Todo Error Identifier Normal
|
||||
|
||||
MultiHi gui=NONE VisualNOS SpecialKey NonText Directory ErrorMsg MoreMsg Title WarningMsg WildMenu Folded FoldColumn DiffAdd DiffChange DiffDelete DiffText SignColumn
|
||||
|
||||
" Vim 7 added stuffs
|
||||
if v:version >= 700
|
||||
MultiHi gui=NONE Ignore PmenuSel PmenuSel PmenuSbar PmenuThumb TabLine TabLineFill TabLineSel
|
||||
|
||||
" the gui=undercurl guisp could only support in Vim 7
|
||||
if has('spell')
|
||||
MultiHi gui=undercurl SpellBad SpellCap SpellRare SpellLocal
|
||||
endif
|
||||
if s:style=="cool" || s:style=="warm"
|
||||
MultiHi gui=underline TabLine TabLineFill Underlined CursorLine
|
||||
else
|
||||
MultiHi gui=underline TabLine Underlined
|
||||
endif
|
||||
endif
|
||||
|
||||
" For reversed stuffs
|
||||
MultiHi gui=NONE IncSearch StatusLine StatusLineNC VertSplit Visual
|
||||
|
||||
if s:style=="cool" || s:style=="warm"
|
||||
if s:fontface=="mixed"
|
||||
MultiHi gui=bold IncSearch StatusLine StatusLineNC VertSplit Visual
|
||||
endif
|
||||
else
|
||||
if s:fontface=="mixed"
|
||||
hi StatusLine gui=bold,reverse
|
||||
else
|
||||
hi StatusLine gui=reverse
|
||||
endif
|
||||
MultiHi gui=reverse IncSearch StatusLineNC VertSplit Visual
|
||||
endif
|
||||
|
||||
" Enable the bold style
|
||||
if s:fontface=="mixed"
|
||||
MultiHi gui=bold Question DiffText Statement Type MoreMsg ModeMsg NonText Title VisualNOS DiffDelete TabLineSel
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
" Color Term:
|
||||
|
||||
" It's not quite possible to support 'cool' and 'warm' simultaneously, since
|
||||
" we cannot expect a terminal to have more than 16 color names.
|
||||
"
|
||||
|
||||
" I assume Vim will never go to cterm mode when has("gui_running") returns 1,
|
||||
" Please enlighten me if I am wrong.
|
||||
"
|
||||
if !has('gui_running')
|
||||
" cterm settings {{{1
|
||||
if s:cterm_style=='cool'
|
||||
|
||||
if s:cterm_transparent
|
||||
highlight Normal ctermfg=LightGrey ctermbg=NONE
|
||||
highlight Special ctermfg=Yellow ctermbg=NONE
|
||||
highlight Comment ctermfg=DarkYellow ctermbg=NONE
|
||||
highlight Constant ctermfg=Blue ctermbg=NONE
|
||||
highlight Number ctermfg=Yellow ctermbg=NONE
|
||||
highlight LineNr ctermfg=DarkGrey ctermbg=NONE
|
||||
highlight PreProc ctermfg=Green ctermbg=NONE
|
||||
highlight Statement ctermfg=Cyan ctermbg=NONE
|
||||
highlight Type ctermfg=Cyan ctermbg=NONE
|
||||
highlight Error ctermfg=Red ctermbg=NONE
|
||||
highlight Identifier ctermfg=Magenta ctermbg=NONE
|
||||
highlight SpecialKey ctermfg=Cyan ctermbg=NONE
|
||||
highlight NonText ctermfg=Blue ctermbg=NONE
|
||||
highlight Directory ctermfg=Blue ctermbg=NONE
|
||||
highlight MoreMsg ctermfg=Green ctermbg=NONE
|
||||
highlight Title ctermfg=Magenta ctermbg=NONE
|
||||
highlight WarningMsg ctermfg=Red ctermbg=NONE
|
||||
highlight DiffDelete ctermfg=Blue ctermbg=NONE
|
||||
else
|
||||
highlight Normal ctermfg=LightGrey ctermbg=Black
|
||||
highlight Special ctermfg=Yellow ctermbg=bg
|
||||
highlight Comment ctermfg=DarkYellow ctermbg=bg
|
||||
highlight Constant ctermfg=Blue ctermbg=bg
|
||||
highlight Number ctermfg=Yellow ctermbg=bg
|
||||
highlight LineNr ctermfg=DarkGrey ctermbg=bg
|
||||
highlight PreProc ctermfg=Green ctermbg=bg
|
||||
highlight Statement ctermfg=Cyan ctermbg=bg
|
||||
highlight Type ctermfg=Cyan ctermbg=bg
|
||||
highlight Error ctermfg=Red ctermbg=bg
|
||||
highlight Identifier ctermfg=Magenta ctermbg=bg
|
||||
highlight SpecialKey ctermfg=Cyan ctermbg=bg
|
||||
highlight NonText ctermfg=Blue ctermbg=bg
|
||||
highlight Directory ctermfg=Blue ctermbg=bg
|
||||
highlight MoreMsg ctermfg=Green ctermbg=bg
|
||||
highlight Title ctermfg=Magenta ctermbg=bg
|
||||
highlight WarningMsg ctermfg=Red ctermbg=bg
|
||||
highlight DiffDelete ctermfg=Blue ctermbg=bg
|
||||
endif
|
||||
highlight Search ctermfg=NONE ctermbg=DarkRed
|
||||
highlight Visual ctermfg=Black ctermbg=DarkCyan
|
||||
highlight Cursor ctermfg=Black ctermbg=Green
|
||||
highlight StatusLine ctermfg=Black ctermbg=DarkCyan
|
||||
highlight Question ctermfg=Black ctermbg=DarkYellow
|
||||
if s:inversed_todo==0
|
||||
highlight Todo ctermfg=DarkRed ctermbg=DarkYellow
|
||||
else
|
||||
highlight Todo ctermfg=DarkYellow ctermbg=DarkBlue
|
||||
endif
|
||||
highlight Folded ctermfg=White ctermbg=DarkGreen
|
||||
highlight ModeMsg ctermfg=Grey ctermbg=DarkBlue
|
||||
highlight VisualNOS ctermfg=Grey ctermbg=DarkBlue
|
||||
highlight ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed
|
||||
highlight WildMenu ctermfg=Black ctermbg=DarkYellow
|
||||
highlight FoldColumn ctermfg=White ctermbg=DarkGreen
|
||||
highlight SignColumn ctermfg=White ctermbg=DarkGreen
|
||||
highlight DiffText ctermfg=Black ctermbg=DarkYellow
|
||||
|
||||
if v:version >= 700
|
||||
if has('spell')
|
||||
highlight SpellBad ctermfg=NONE ctermbg=DarkRed
|
||||
highlight SpellCap ctermfg=NONE ctermbg=DarkBlue
|
||||
highlight SpellRare ctermfg=NONE ctermbg=DarkMagenta
|
||||
highlight SpellLocal ctermfg=NONE ctermbg=DarkGreen
|
||||
endif
|
||||
highlight Pmenu ctermfg=fg ctermbg=DarkMagenta
|
||||
highlight PmenuSel ctermfg=Black ctermbg=fg
|
||||
highlight PmenuSbar ctermfg=fg ctermbg=DarkBlue
|
||||
highlight PmenuThumb ctermfg=fg ctermbg=DarkGreen
|
||||
highlight TabLine ctermfg=fg ctermbg=DarkGreen cterm=underline
|
||||
highlight TabLineFill ctermfg=fg ctermbg=DarkGreen cterm=underline
|
||||
highlight CursorColumn ctermfg=NONE ctermbg=DarkRed
|
||||
if s:cterm_transparent
|
||||
highlight TabLineSel ctermfg=fg ctermbg=NONE
|
||||
highlight CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
else
|
||||
highlight TabLineSel ctermfg=fg ctermbg=bg
|
||||
highlight CursorLine ctermfg=NONE ctermbg=bg cterm=underline
|
||||
endif
|
||||
highlight MatchParen ctermfg=NONE ctermbg=DarkMagenta
|
||||
endif
|
||||
if &t_Co==8
|
||||
" 8 colour terminal support, this assumes 16 colour is available through
|
||||
" setting the 'bold' attribute, will get bright foreground colour.
|
||||
" However, the bright background color is not available for 8-color terms.
|
||||
"
|
||||
" You can manually set t_Co=16 in your .vimrc to see if your terminal
|
||||
" supports 16 colours,
|
||||
MultiHi cterm=none DiffText Visual Cursor Comment Todo StatusLine Question DiffChange ModeMsg VisualNOS ErrorMsg WildMenu DiffAdd Folded DiffDelete Normal PmenuThumb
|
||||
MultiHi cterm=bold Search Special Constant Number LineNr PreProc Statement Type Error Identifier SpecialKey NonText MoreMsg Title WarningMsg FoldColumn SignColumn Directory DiffDelete
|
||||
|
||||
else
|
||||
" Background > 7 is only available with 16 or more colors
|
||||
|
||||
" Only use the s:fontface option when there is 16-colour(or more)
|
||||
" terminal support
|
||||
|
||||
MultiHi cterm=none WarningMsg Search Visual Cursor Special Comment Constant Number LineNr PreProc Todo Error Identifier Folded SpecialKey Directory ErrorMsg Normal PmenuThumb
|
||||
MultiHi cterm=none WildMenu FoldColumn SignColumn DiffAdd DiffChange Question StatusLine DiffText
|
||||
MultiHi cterm=reverse IncSearch StatusLineNC VertSplit
|
||||
|
||||
" Well, well, bold font with color 0-7 is not possible.
|
||||
" So, the Question, StatusLine, DiffText cannot act as expected.
|
||||
|
||||
call s:multi_hi("cterm=".((s:fontface=="plain") ? "none" : "bold"), "Statement", "Type", "MoreMsg", "ModeMsg", "NonText", "Title", "VisualNOS", "DiffDelete", "TabLineSel")
|
||||
|
||||
endif
|
||||
|
||||
elseif s:cterm_style=='defdark'
|
||||
highlight Normal ctermfg=LightGrey ctermbg=NONE
|
||||
endif
|
||||
" }}}1
|
||||
endif
|
||||
|
||||
|
||||
" Term:
|
||||
" For console with only 4 colours (term, not cterm), we'll use the default.
|
||||
" ...
|
||||
" The default colorscheme is good enough for terms with no more than 4 colours
|
||||
"
|
||||
|
||||
|
||||
" Links:
|
||||
"
|
||||
if (s:style=='cool') || (s:style == 'warm')
|
||||
" COLOR LINKS DEFINE START
|
||||
|
||||
highlight link String Constant
|
||||
" Character must be different from strings because in many languages
|
||||
" (especially C, C++) a 'char' variable is scalar while 'string' is pointer,
|
||||
" mistaken a 'char' for a 'string' will cause disaster!
|
||||
highlight link Character Number
|
||||
highlight link SpecialChar LineNr
|
||||
highlight link Tag Identifier
|
||||
" The following are not standard hi links,
|
||||
" these are used by DrChip
|
||||
highlight link Warning MoreMsg
|
||||
highlight link Notice Constant
|
||||
" these are used by Calendar
|
||||
highlight link CalToday PreProc
|
||||
" these are used by TagList
|
||||
highlight link MyTagListTagName IncSearch
|
||||
highlight link MyTagListTagScope Constant
|
||||
|
||||
" COLOR LINKS DEFINE END
|
||||
endif
|
||||
|
||||
|
||||
" Clean:
|
||||
" these clean stuffs are proved to have problem, so I removed them.
|
||||
delcommand InitOpt
|
||||
delcommand MultiHi
|
||||
" delfunction init_option
|
||||
" delfunction multi_hi
|
||||
|
||||
" vim:et:nosta:sw=2:ts=8:
|
||||
" vim600:fdm=marker:fdl=1:
|
1117
.vim/colors/solarized.vim
Normal file
1117
.vim/colors/solarized.vim
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user