diff options
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | colors/sahara.vim | 27 |
2 files changed, 14 insertions, 15 deletions
@@ -1 +1 @@ -1.2.0 +1.4.0 diff --git a/colors/sahara.vim b/colors/sahara.vim index 5b12b57..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 @@ -160,15 +159,15 @@ highlight WarningMsg \ gui=NONE guifg=#ff875f guibg=NONE " General highlighting group links. -highlight! link Title Normal -highlight! link LineNr NonText +highlight! link CursorColumn CursorLine highlight! link CursorLineNr LineNr +highlight! link LineNr NonText +highlight! link SpellCap SpellBad +highlight! link SpellLocal SpellBad +highlight! link SpellRare SpellBad highlight! link TabLine StatusLineNC highlight! link TabLineFill StatusLineNC highlight! link TabLineSel StatusLine +highlight! link Title Normal highlight! link VertSplit StatusLineNC highlight! link VimHiGroup VimGroup -highlight! link SpellCap SpellBad -highlight! link SpellLocal SpellBad -highlight! link SpellRare SpellBad -highlight! link CursorColumn CursorLine |