Commit 0d80a8ae authored by Dieter Konrad's avatar Dieter Konrad

Support for Light Theme. First hack.

parent c3fc101b
" Check editor version
if version < 600
syntax clear
elseif exists("b:current_syntax")
......@@ -71,6 +72,37 @@ syntax keyword ionKeyword unalias
syntax keyword ionKeyword wait
syntax keyword ionKeyword while
" Get current BackgroundTheme of terminal (xterm)
let g:background = system('./gettheme.sh')
let g:theme = strpart(g:background, 7, 10)
if g:theme ==# 'LightTheme'
hi Operator cterm=bold ctermfg=black
hi Array cterm=bold ctermfg=blue
hi String cterm=bold ctermfg=green
hi DoubleQuote ctermfg=green
hi SingleQuote ctermfg=lightgreen
hi Numbers ctermfg=orange
hi! Comment ctermfg=grey cterm=italic
hi Keywords ctermfg=magenta cterm=bold
hi Flag cterm=bold ctermfg=darkyellow
hi def link ionKeyword Keywords
hi def link arrayVar Array
hi def link variable String
hi def link ionNumber Numbers
hi def link doubleQuote DoubleQuote
hi def link singleQuote SingleQuote
hi def link process PreProc
hi def link comment Comment
hi def link operator Operator
hi def link flag Flag
else
" DarkTheme
hi Operator cterm=bold ctermfg=white
hi Array cterm=bold ctermfg=lightblue
hi String cterm=bold ctermfg=lightmagenta
......@@ -91,3 +123,5 @@ hi def link process PreProc
hi def link comment Comment
hi def link operator Operator
hi def link flag Flag
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment