ตั้งแต่กลุ่ม 8 มีEndOfBufferกลุ่มไฮไลต์สำหรับสิ่งนี้ จาก:help hl-EndOfBuffer:
EndOfBuffer filler lines (~) after the last line in the buffer.
By default, this is highlighted like hl-NonText.
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เป็นสิ่งที่ฉันต้องการ ฉันพบข้อมูลโค้ดไม่ทำงาน แต่hi NonText ctermbg=NONEทำตามคำตอบของ @ Carpetsmoker