vimdiff风格的颜色问题:顶部和底部行

huangapple go评论71阅读模式
英文:

vimdiff style color question: top & bottom lines

问题

我无法找到更改vimdiff中顶部和底部行的guifg和guibg颜色的突出显示名称(或突出显示组)。 (状态栏上方的底部行,即)。

(更具体地说,它们是在左边有“+ -”的行,位于行号右侧。)

在附加的截图中,这些是行号1和18。 (它们是具有明亮银色背景和青色前景颜色的行。)

我想要能够在我的vimrc中更改这些行的颜色。

我已经查阅了Vim参考手册中关于突出显示和:highlight组的所有信息,并进行了几次搜索,目前还没有找到有用的信息。

感谢任何见解。

英文:

I cannot find what the highlight name (or highlight group) is to change the guifg and guibg colors of the top and bottom lines in vimdiff. (The bottom line above the statusline, that is).

(More specifically, the lines with the "+--" at their left edge, to the right of the line number.)

In the attached screenshot, these are line numbers 1 and 18. (They're the lines with the bright silver background and cyan foreground colors.)

I would like to be able to change the colors of those lines in my vimrc.

I've looked through the Vim Reference Manual at everything I could find on highlighting and :highlight groups and have done several searches that have so far yielded no useful info.

Thanks for any insights.

vimdiff风格的颜色问题:顶部和底部行

答案1

得分: 0

Folded 是负责这些行的组。请查看 :help hl-Folded

将来,您可以使用 :so $VIMRUNTIME/syntax/hitest.vim 尝试在视觉上找到匹配的组。

英文:

Folded is the group responsible for those lines. See :help hl-Folded.

In the future, you can use :so $VIMRUNTIME/syntax/hitest.vim to try to visually find the matching group.

huangapple
  • 本文由 发表于 2023年7月28日 01:09:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76782046.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定