Since Vim 8 there is the EndOfBuffer
highlight group for this; from :help hl-EndOfBuffer
:
EndOfBuffer filler lines (~) after the last line in the buffer.
By default, this is highlighted like hl-NonText.
For earlier Vim versions it's NonText
. From :help hl-NonText
:
NonText '~' and '@' at the end of the window, characters from
'showbreak' and other characters that do not really exist in
the text (e.g., ">" displayed when a double-wide character
doesn't fit at the end of the line).
I didn't know this either. How I found this:
- I typed
:help 'highlight'
- I noticed there's a list with highlight "occasions" here with a brief description.
- Type
/\~
to search for the ~
character
And on :help colorscheme
I read:
:hi[ghlight] clear {group-name}
:hi[ghlight] {group-name} NONE
Disable the highlighting for one highlight group. It
is _not_ set back to the default colors.
Using :highlight clear NonText
seems to work for me.