aboutsummaryrefslogtreecommitdiff
path: root/colors/sahara.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:59:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 13:59:41 +1200
commit61e800af7de8e7ad1b8add3659c8879950f6021a (patch)
tree4df3c00d8fc8d668a8e611c51900e6cd2ed04903 /colors/sahara.vim
parent975a1ac898eab525306cab8675a0c9ee3e7975cb (diff)
downloadvim-sahara-61e800af7de8e7ad1b8add3659c8879950f6021a.tar.gz
Adjust load guard
Diffstat (limited to 'colors/sahara.vim')
-rw-r--r--colors/sahara.vim15
1 files changed, 7 insertions, 8 deletions
diff --git a/colors/sahara.vim b/colors/sahara.vim
index 6bc44e6..aa59a98 100644
--- a/colors/sahara.vim
+++ b/colors/sahara.vim
@@ -7,19 +7,18 @@
" <https://sanctum.geek.nz/>
"
-" Do nothing if we can't get our colors
-if !has('gui_running') && &t_Co < 256
- echoerr 'Colorscheme requires GUI or 256 color term'
+" Do nothing if too old or we can't get our colors
+if v:version < 700
+ \ || !has('gui_running') && &t_Co < 256
+ echoerr 'Colorscheme requires Vim >=7.0 and GUI or 256 color term'
finish
endif
" Terminal setup
set background=dark
-if v:version > 580
- highlight clear
- if exists('syntax_on')
- syntax reset
- endif
+highlight clear
+if exists('syntax_on')
+ syntax reset
endif
" Set colorscheme name