Create the Normal highlight if it doesn't exist
This can happen in versions of vim built without X support, like vim.nox in Debian. Fixes #9
This commit is contained in:
parent
7f0186d6bc
commit
7981dac51d
@ -378,6 +378,11 @@ endfunction
|
|||||||
|
|
||||||
" {>1} Top-level control
|
" {>1} Top-level control
|
||||||
|
|
||||||
|
" If the normal group doesn't exist yet, create it
|
||||||
|
if hlID('Normal') == 0
|
||||||
|
hi clear Normal
|
||||||
|
endif
|
||||||
|
|
||||||
" Cache the highlight ID of the normal group; it's used often and won't change
|
" Cache the highlight ID of the normal group; it's used often and won't change
|
||||||
let s:hlid_normal = hlID('Normal')
|
let s:hlid_normal = hlID('Normal')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user