aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-05-29 13:27:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-05-29 13:27:45 +1200
commit6854bfbe359b48c0e867ddf456c7c94e63995a93 (patch)
tree4b6a242e02769997cdbf93a7b7aa3ba2bc573cc8
parent8c3f31865151801e9e6260716a61147305a14837 (diff)
downloadvim-juvenile-6854bfbe359b48c0e867ddf456c7c94e63995a93.tar.gz
vim-juvenile-6854bfbe359b48c0e867ddf456c7c94e63995a93.zip
Refine/correct colorscheme preamble
-rw-r--r--colors/juvenile.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/colors/juvenile.vim b/colors/juvenile.vim
index bb7abf4..1a1bbce 100644
--- a/colors/juvenile.vim
+++ b/colors/juvenile.vim
@@ -8,10 +8,15 @@
" License: Same as Vim itself
"
set background=dark
-highlight clear
+if version > 580
+ highlight clear
+ if exists('g:syntax_on')
+ syntax reset
+ endif
syntax reset
-let g:colors_name="juvenile"
-if has("gui_running") || &t_Co == 256
+let g:colors_name = 'juvenile'
+
+if has('gui_running') || &t_Co == 256
highlight Comment cterm=NONE ctermfg=246 ctermbg=NONE gui=NONE guifg=#a0a0a0 guibg=NONE
highlight NonText cterm=NONE ctermfg=246 ctermbg=NONE gui=NONE guifg=#a0a0a0 guibg=NONE
highlight Constant cterm=NONE ctermfg=NONE ctermbg=NONE gui=NONE guifg=NONE guibg=NONE