[英]How to remove highlight group?
我正在嘗試刪除 jsonCommentError 突出顯示組。 在啟動時,我通過運行:hi jsonCommentError
看到突出顯示組處於活動狀態。
:hi jsonCommentError
jsonCommentError xxx links to Error
我嘗試使用:hi clear jsonCommentError
和:hi jsonCommentError NONE
將其刪除,但這不起作用,並且運行:hi jsonCommentError
時沒有任何變化。
我猜:hi clear
不起作用,因為突出顯示組不是由用戶添加的,但我不知道為什么:hi NONE
不起作用。
您無法真正刪除該組。 只是為了讓它透明。
hi clear
刪除了組自己的突出顯示 colors。 hi link
設置組的鏈接目標(總是優先於組自己的顏色)。
你需要哪一個,這取決於。 但同時做這兩件事永遠不會有壞處:
hi clear jsonCommentError
hi! link jsonCommentError NONE
同樣在這種情況下,您可能希望立即關閉所有錯誤突出顯示(請參閱:h json.vim
):
let g:vim_json_warnings = 0
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.