mirror of
https://github.com/altercation/solarized
synced 2024-11-24 20:53:03 +00:00
[vim] solarized.vim 8 color highlighting match to 16/gui modes
This commit is contained in:
parent
7fdec56a18
commit
d8aaf70840
1 changed files with 34 additions and 26 deletions
|
@ -4,7 +4,7 @@
|
|||
" (see this url for latest release & screenshots)
|
||||
" License: OSI approved MIT license (see end of this file)
|
||||
" Created: In the middle of the night
|
||||
" Modified: 2011 Apr 30
|
||||
" Modified: 2011 May 01
|
||||
"
|
||||
" Usage "{{{
|
||||
"
|
||||
|
@ -476,8 +476,19 @@ exe "let s:fmt_undi = ' ".s:vmode."=NONE".s:u. " term=NONE".s:u."'"
|
|||
exe "let s:fmt_uopt = ' ".s:vmode."=NONE".s:ou. " term=NONE".s:ou."'"
|
||||
exe "let s:fmt_curl = ' ".s:vmode."=NONE".s:c. " term=NONE".s:c."'"
|
||||
exe "let s:fmt_ital = ' ".s:vmode."=NONE".s:i. " term=NONE".s:i."'"
|
||||
exe "let s:fmt_revr = ' ".s:vmode."=NONE".s:r. " term=NONE".s:r."'"
|
||||
exe "let s:fmt_stnd = ' ".s:vmode."=NONE".s:s. " term=NONE".s:s."'"
|
||||
exe "let s:fmt_revr = ' ".s:vmode."=NONE".s:r. " term=NONE".s:r."'"
|
||||
exe "let s:fmt_revb = ' ".s:vmode."=NONE".s:r.s:b. " term=NONE".s:r.s:b."'"
|
||||
" revbb (reverse bold for bright colors) is only set to actual bold in low
|
||||
" color terminals (t_co=8, such as OS X Terminal.app) and should only be used
|
||||
" with colors 8-15.
|
||||
if ( has("gui_running") || &t_Co > 8 )
|
||||
exe "let s:fmt_revbb = ' ".s:vmode."=NONE".s:r. " term=NONE".s:r. "'"
|
||||
exe "let s:fmt_revbbu = ' ".s:vmode."=NONE".s:r.s:u. " term=NONE".s:r.s:u."'"
|
||||
else
|
||||
exe "let s:fmt_revbb = ' ".s:vmode."=NONE".s:r.s:b. " term=NONE".s:r.s:b."'"
|
||||
exe "let s:fmt_revbbu = ' ".s:vmode."=NONE".s:r.s:b.s:u." term=NONE".s:r.s:b.s:u."'"
|
||||
endif
|
||||
|
||||
if has("gui_running")
|
||||
exe "let s:sp_none = ' guisp=".s:none ."'"
|
||||
|
@ -589,25 +600,18 @@ exe "hi! Todo" .s:fmt_bold .s:fg_magenta.s:bg_none
|
|||
" Extended highlighting "{{{
|
||||
" ---------------------------------------------------------------------
|
||||
if (g:solarized_visibility=="high")
|
||||
exe "hi! SpecialKey" .s:fmt_revr .s:fg_red .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base1 .s:bg_none
|
||||
exe "hi! SpecialKey" .s:fmt_revr .s:fg_red .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base1 .s:bg_none
|
||||
elseif (g:solarized_visibility=="low")
|
||||
exe "hi! SpecialKey" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||
exe "hi! SpecialKey" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||
else
|
||||
exe "hi! SpecialKey" .s:fmt_bold .s:fg_red .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base01 .s:bg_none
|
||||
endif
|
||||
if (has("gui_running")) || &t_Co > 8
|
||||
exe "hi! StatusLine" .s:fmt_none .s:fg_base02 .s:bg_base1
|
||||
exe "hi! StatusLineNC" .s:fmt_none .s:fg_base02 .s:bg_base00
|
||||
"exe "hi! Visual" .s:fmt_stnd .s:fg_none .s:bg_base02
|
||||
exe "hi! Visual" .s:fmt_none .s:fg_base03 .s:bg_base01
|
||||
else
|
||||
exe "hi! StatusLine" .s:fmt_none .s:fg_base02 .s:bg_blue
|
||||
exe "hi! StatusLineNC" .s:fmt_none .s:fg_base00 .s:bg_base02
|
||||
exe "hi! Visual" .s:fmt_none .s:fg_none .s:bg_base2
|
||||
exe "hi! SpecialKey" .s:fmt_bold .s:fg_red .s:bg_none
|
||||
exe "hi! NonText" .s:fmt_bold .s:fg_base01 .s:bg_none
|
||||
endif
|
||||
exe "hi! StatusLine" .s:fmt_none .s:fg_base1 .s:bg_base02 .s:fmt_revbb
|
||||
exe "hi! StatusLineNC" .s:fmt_none .s:fg_base00 .s:bg_base02 .s:fmt_revbb
|
||||
exe "hi! Visual" .s:fmt_none .s:fg_base01 .s:bg_base03 .s:fmt_revbb
|
||||
exe "hi! Directory" .s:fmt_none .s:fg_blue .s:bg_none
|
||||
exe "hi! ErrorMsg" .s:fmt_revr .s:fg_red .s:bg_none
|
||||
exe "hi! IncSearch" .s:fmt_stnd .s:fg_orange .s:bg_none
|
||||
|
@ -616,11 +620,15 @@ exe "hi! MoreMsg" .s:fmt_none .s:fg_blue .s:bg_none
|
|||
exe "hi! ModeMsg" .s:fmt_none .s:fg_blue .s:bg_none
|
||||
exe "hi! LineNr" .s:fmt_none .s:fg_base01 .s:bg_base02
|
||||
exe "hi! Question" .s:fmt_bold .s:fg_cyan .s:bg_none
|
||||
exe "hi! VertSplit" .s:fmt_bold .s:fg_base00 .s:bg_base00
|
||||
if ( has("gui_running") || &t_Co > 8 )
|
||||
exe "hi! VertSplit" .s:fmt_none .s:fg_base00 .s:bg_base00
|
||||
else
|
||||
exe "hi! VertSplit" .s:fmt_revbb .s:fg_base00 .s:bg_base02
|
||||
endif
|
||||
exe "hi! Title" .s:fmt_bold .s:fg_orange .s:bg_none
|
||||
exe "hi! VisualNOS" .s:fmt_stnd .s:fg_none .s:bg_base02
|
||||
exe "hi! VisualNOS" .s:fmt_stnd .s:fg_none .s:bg_base02 .s:fmt_revbb
|
||||
exe "hi! WarningMsg" .s:fmt_bold .s:fg_red .s:bg_none
|
||||
exe "hi! WildMenu" .s:fmt_none .s:fg_base2 .s:bg_base02
|
||||
exe "hi! WildMenu" .s:fmt_none .s:fg_base2 .s:bg_base02 .s:fmt_revbb
|
||||
exe "hi! Folded" .s:fmt_undb .s:fg_base0 .s:bg_base02 .s:sp_base03
|
||||
exe "hi! FoldColumn" .s:fmt_none .s:fg_base0 .s:bg_base02
|
||||
exe "hi! DiffAdd" .s:fmt_revr .s:fg_green .s:bg_none
|
||||
|
@ -633,13 +641,13 @@ exe "hi! SpellBad" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_red
|
|||
exe "hi! SpellCap" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_violet
|
||||
exe "hi! SpellRare" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_cyan
|
||||
exe "hi! SpellLocal" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_yellow
|
||||
exe "hi! Pmenu" .s:fmt_none .s:fg_base0 .s:bg_base02
|
||||
exe "hi! PmenuSel" .s:fmt_none .s:fg_base2 .s:bg_base01
|
||||
exe "hi! PmenuSbar" .s:fmt_none .s:fg_base0 .s:bg_base2
|
||||
exe "hi! PmenuThumb" .s:fmt_none .s:fg_base03 .s:bg_base0
|
||||
exe "hi! Pmenu" .s:fmt_none .s:fg_base0 .s:bg_base02 .s:fmt_revbb
|
||||
exe "hi! PmenuSel" .s:fmt_none .s:fg_base01 .s:bg_base2 .s:fmt_revbb
|
||||
exe "hi! PmenuSbar" .s:fmt_none .s:fg_base2 .s:bg_base0 .s:fmt_revbb
|
||||
exe "hi! PmenuThumb" .s:fmt_none .s:fg_base0 .s:bg_base03 .s:fmt_revbb
|
||||
exe "hi! TabLine" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
|
||||
exe "hi! TabLineSel" .s:fmt_undr .s:fg_base2 .s:bg_base01 .s:sp_base0
|
||||
exe "hi! TabLineFill" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
|
||||
exe "hi! TabLineSel" .s:fmt_undr .s:fg_base01 .s:bg_base2 .s:sp_base0 .s:fmt_revbbu
|
||||
exe "hi! CursorColumn" .s:fmt_none .s:fg_none .s:bg_base02
|
||||
exe "hi! CursorLine" .s:fmt_uopt .s:fg_none .s:bg_base02 .s:sp_base1
|
||||
exe "hi! ColorColumn" .s:fmt_none .s:fg_none .s:bg_base02
|
||||
|
|
Loading…
Reference in a new issue