Drop syntax reset on modern vim version

According to https://vimhelp.org/syntax.txt.html
and https://github.com/vim/colorschemes/issues/34
there is no need to call `syntax reset` after
`hi clear`. Not doing so prevents sourcing syncolor.vim
twice.
This commit is contained in:
jvoisin 2022-04-16 19:34:27 +02:00
parent 291e05d96f
commit 85b3da4b60

View file

@ -5,16 +5,16 @@
" Repository: https://github.com/arcticicestudio/nord-vim
" License: MIT
if version > 580
set background=dark
if v:version > 580
hi clear
if exists("syntax_on")
if exists("syntax_on") && (v:version < 800)
syntax reset
endif
endif
let g:colors_name = "nord"
let s:nord_vim_version="0.18.0"
set background=dark
let s:nord0_gui = "#2E3440"
let s:nord1_gui = "#3B4252"