Instantly share code, notes, and snippets.

Embed
What would you like to do?
Solarizedの暗いやつと明るいやつを`set background`で切り替えられるVimカラースキーム
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "solarized"
highlight Conceal gui=NONE guifg=#268bd2 guibg=NONE
highlight CursorIM gui=NONE guifg=#fdf6e3 guibg=#dc322f
highlight DiffAdd gui=NONE guifg=#859900 guibg=NONE
highlight DiffChange gui=NONE guifg=#b58900 guibg=NONE
highlight DiffDelete gui=NONE guifg=#dc322f guibg=NONE
highlight DiffText gui=NONE guifg=#268bd2 guibg=NONE
highlight Directory gui=NONE guifg=#268bd2 guibg=NONE
highlight ErrorMsg gui=NONE guifg=#dc322f guibg=NONE
highlight IncSearch gui=bold guifg=#fdf6e3 guibg=#cb4b16
highlight MatchParen gui=bold guifg=#fdf6e3 guibg=#d33682
highlight ModeMsg gui=NONE guifg=#268bd2 guibg=NONE
highlight MoreMsg gui=NONE guifg=#268bd2 guibg=NONE
highlight Question gui=bold guifg=#2aa198 guibg=NONE
highlight Search gui=NONE guifg=#fdf6e3 guibg=#b58900
highlight SpellBad gui=undercurl guifg=NONE guibg=NONE guisp=#dc322f
highlight SpellCap gui=undercurl guifg=NONE guibg=NONE guisp=#6c71c4
highlight SpellLocal gui=undercurl guifg=NONE guibg=NONE guisp=#b58900
highlight SpellRare gui=undercurl guifg=NONE guibg=NONE guisp=#2aa198
highlight Title gui=bold guifg=#cb4b16 guibg=NONE
highlight WarningMsg gui=bold guifg=#dc322f guibg=NONE
if &background ==# "light"
highlight Normal gui=NONE guifg=#657b83 guibg=#fdf6e3
highlight Cursor gui=NONE guifg=#fdf6e3 guibg=#657b83
highlight CursorLine gui=NONE guifg=NONE guibg=#eee8d5
highlight CursorLineNr gui=bold guifg=NONE guibg=#eee8d5
highlight FoldColumn gui=NONE guifg=#657b83 guibg=#eee8d5
highlight Folded gui=bold,underline guifg=#657b83 guibg=#eee8d5
highlight LineNr gui=NONE guifg=#839496 guibg=#eee8d5
highlight NonText gui=bold guifg=#839496 guibg=NONE
highlight Pmenu gui=NONE guifg=#839496 guibg=#002732
highlight PmenuSbar gui=NONE guifg=NONE guibg=#002732
highlight PmenuSel gui=NONE guifg=#fdf6e3 guibg=#073642
highlight PmenuThumb gui=NONE guifg=NONE guibg=#586e75
highlight SpecialKey gui=bold guifg=#839496 guibg=#eee8d5
highlight StatusLine gui=NONE guifg=#fdf6e3 guibg=#586e75
highlight StatusLineNC gui=NONE guifg=#93a1a1 guibg=#eee8d5
highlight VertSplit gui=NONE guifg=#839496 guibg=#839496
highlight Comment gui=NONE guifg=#93a1a1 guibg=NONE
else
highlight Normal gui=NONE guifg=#839496 guibg=#002732
highlight Cursor gui=NONE guifg=#002732 guibg=#839496
highlight CursorLine gui=NONE guifg=NONE guibg=#073642
highlight CursorLineNr gui=bold guifg=NONE guibg=#073642
highlight FoldColumn gui=NONE guifg=#839496 guibg=#073642
highlight Folded gui=bold,underline guifg=#839496 guibg=#073642
highlight LineNr gui=NONE guifg=#657b83 guibg=#073642
highlight NonText gui=bold guifg=#657b83 guibg=NONE
highlight Pmenu gui=NONE guifg=#657b83 guibg=#fdf6e3
highlight PmenuSbar gui=NONE guifg=NONE guibg=#fdf6e3
highlight PmenuSel gui=NONE guifg=#fdf6e3 guibg=#eee8d5
highlight PmenuThumb gui=NONE guifg=NONE guibg=#93a1a1
highlight SpecialKey gui=bold guifg=#657b83 guibg=#073642
highlight StatusLine gui=NONE guifg=#839496 guibg=#073642
highlight StatusLineNC gui=NONE guifg=NONE guibg=#073642
highlight VertSplit gui=NONE guifg=#657b83 guibg=#657b83
highlight Comment gui=NONE guifg=#586e75 guibg=NONE
endif
highlight Constant gui=NONE guifg=#2aa198 guibg=NONE
highlight Error gui=bold guifg=#dc322f guibg=NONE
highlight Identifier gui=NONE guifg=#268bd2 guibg=NONE
highlight Ignore gui=NONE guifg=NONE guibg=NONE
highlight PreProc gui=NONE guifg=#cb4b16 guibg=NONE
highlight Special gui=NONE guifg=#dc322f guibg=NONE
highlight Statement gui=NONE guifg=#719e07 guibg=NONE
highlight Todo gui=bold guifg=#d33682 guibg=NONE
highlight Type gui=NONE guifg=#b58900 guibg=NONE
highlight Underlined gui=NONE guifg=#6c71c4 guibg=NONE
highlight! link ColorColumn CursorLine
highlight! link CursorColumn CursorLine
highlight! link EndOfBuffer NonText
highlight! link QuickFixLine CursorLine
highlight! link SignColumn FoldColumn
highlight! link Visual StatusLine
highlight! link VisualNOS StatusLineNC
highlight! link WildMenu PmenuSel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment