1
0
mirror of https://github.com/gryf/wombat256grf.git synced 2025-12-17 11:30:19 +01:00

Remove check for old versions of Vim.

There was some check regarding specific features Vim have, like
spell check which was introduced with Vim 7.0, and even on old
repositories, the oldest version of Vim I could find is 7.4. Let's get
rid of unnecessary legacy.
This commit is contained in:
2021-01-19 21:01:27 +01:00
parent 36e2855945
commit 97abe4754f

View File

@@ -10,11 +10,9 @@
set background=dark set background=dark
if version > 580 hi clear
hi clear if exists("syntax_on")
if exists("syntax_on") syntax reset
syntax reset
endif
endif endif
let g:colors_name = "wombat256grf" let g:colors_name = "wombat256grf"
@@ -161,13 +159,9 @@ call s:highlight("Normal", "dddddd", "242424", "none")
call s:highlight("NonText", "4c4c36", "", "none") call s:highlight("NonText", "4c4c36", "", "none")
call s:highlight("Cursor", "222222", "ecee90", "none") call s:highlight("Cursor", "222222", "ecee90", "none")
if version > 700 call s:highlight("CursorLine", "", "32322e", "none")
call s:highlight("CursorLine", "", "32322e", "none") hi link CursorColumn CursorLine
hi link CursorColumn CursorLine call s:highlight("ColorColumn", "", "2d2d2d", "")
if version > 703
call s:highlight("ColorColumn", "", "2d2d2d", "")
endif
endif
call s:highlight("Search", "444444", "ffab4b", "") call s:highlight("Search", "444444", "ffab4b", "")
call s:highlight("MatchParen", "ecee90", "857b6f", "bold") call s:highlight("MatchParen", "ecee90", "857b6f", "bold")
@@ -245,13 +239,11 @@ call s:highlight("DiffDelete", "343434", "101010", "bold")
call s:highlight("DiffChange", "", "53402d", "bold") call s:highlight("DiffChange", "", "53402d", "bold")
" Spellchek " Spellchek
if version > 700 " Spell, make it underline, and less bright colors. only for terminal
" spell, make it underline, and less bright colors. only for terminal call s:undercurl("SpellBad", "881000")
call s:undercurl("SpellBad", "881000") call s:undercurl("SpellCap", "003288")
call s:undercurl("SpellCap", "003288") call s:undercurl("SpellRare", "73009F")
call s:undercurl("SpellRare", "73009F") call s:undercurl("SpellLocal", "A0CC00")
call s:undercurl("SpellLocal", "A0CC00")
endif
" Plugins: " Plugins:
" ShowMarks " ShowMarks