Answers:
从Vim 8开始EndOfBuffer
,为此有一个重点小组。来自:help hl-EndOfBuffer
:
EndOfBuffer filler lines (~) after the last line in the buffer.
By default, this is highlighted like hl-NonText.
对于较早的Vim版本,它是NonText
。来自: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).
我也不知道 我如何发现的:
:help 'highlight'
/\~
以搜索~
字符然后:help colorscheme
我读到:
: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.
使用:highlight clear NonText
似乎对我有用。
就突出显示组而言,我相信它被称为NonText
。来自:he highlight-groups
:
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).
您可以使用以下方法将其设置为与其余区域相同的颜色:
:hi NonText ctermfg=NONE
:highlight clear NonText
这样(来自vim)-尽管知道“ NonText”,我仍然可以很容易地编辑colorscheme。
ctermbg
,但应该是ctermfg
(我现在已经解决了这个问题)。
fg
适用于文本。
NonText
这就是我所需要的。我发现该片段无效,尽管hi NonText ctermbg=NONE
按照@Carpetsmoker的回答进行了操作。