Vim 如何删除突出显示组?

Vim 如何删除突出显示组?,vim,Vim,我正在尝试删除jsonCommentError突出显示组。启动时,我通过运行:hi jsoncomminterror看到高亮显示组处于活动状态 :hi jsonCommentError jsonCommentError xxx links to Error 我试图用:hi clear jsoncomminterror和:hi jsoncomminterror NONE删除它,但这不起作用,当我运行:hi jsoncomminterror时没有任何更改 :hi jsonCommentError

我正在尝试删除jsonCommentError突出显示组。启动时,我通过运行
:hi jsoncomminterror
看到高亮显示组处于活动状态

:hi jsonCommentError
jsonCommentError xxx links to Error
我试图用
:hi clear jsoncomminterror
:hi jsoncomminterror NONE
删除它,但这不起作用,当我运行
:hi jsoncomminterror
时没有任何更改

:hi jsonCommentError
jsonCommentError xxx links to Error

我猜
:hi clear
不起作用,因为突出显示组不是由用户添加的,但我不知道为什么
:hi NONE
不起作用。

您不能真正删除该组。只是为了让它透明

hi-clear
删除组自身的突出显示颜色<代码>高链接设置组的链接目标(始终优先于组自己的颜色)

你需要哪一个,这要看情况。但同时做这两件事并没有坏处:

hi clear jsonCommentError
hi! link jsonCommentError NONE
同样在这种情况下,您可能希望立即关闭所有错误突出显示(请参见
:h json.vim
):