aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-23 14:59:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-23 14:59:56 +1300
commit703eab28106db44b3608f76dc1254c1b50bdfc01 (patch)
treeec9bad735ec5e5d73e69fc9223135f3eb8ece3a5 /vim/config/syntax.vim
parentMerge branch 'release/v0.25.0' into develop (diff)
parentRemove Pathogen from Vim setup (diff)
downloaddotfiles-703eab28106db44b3608f76dc1254c1b50bdfc01.tar.gz
dotfiles-703eab28106db44b3608f76dc1254c1b50bdfc01.zip
Merge branch 'feature/no-pathogen' into develop
* feature/no-pathogen: Remove Pathogen from Vim setup
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r--vim/config/syntax.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim
index 00004e35..2322db5b 100644
--- a/vim/config/syntax.vim
+++ b/vim/config/syntax.vim
@@ -14,4 +14,9 @@ if has('syntax') && !has('g:syntax_on')
set background=dark
endif
+ " The 'sahara' colorscheme only works for dark backgrounds with 256 colors
+ if &background ==# 'dark' && (has('gui_running') || &t_Co == 256)
+ silent! colorscheme sahara
+ endif
+
endif