vim - 如何设置vim高亮ColorColumn指南透明度?

标签 vim vim-plugin ui-guidelines

我已设置 :highlight ColorColumn ctermbg=1,但该指南过于暗淡。如何增加 vim 指引线的透明度,让我能更清楚地看到它背后有哪些字符?

enter image description here

另外,setcolumn 指南可以像在 Sublime Text 中一样,只是一条细线:

enter image description here

最佳答案

Vim 不使用透明度进行颜色设置,在这种情况下,您将颜色设置为 ANSI 1 或红色。如果顶部的语法高亮显示接近相同的颜色,将难以阅读。

在我的系统上,我的背景和黑色配置略有不同,因此使用 ANSI 16 可以找到好的结果:

highlight ColorColumn ctermbg=16

或者如果您有 256 色终端:

highlight ColorColumn ctermbg=238

可能看起来像这样:

enter image description here

关于vim - 如何设置vim高亮ColorColumn指南透明度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55050366/

相关文章:

iphone - ipad 应用程序屏幕顶部的导航栏和工具栏 - Apple 的批准吗?

python - 使用 python 脚本删除一个逗号

vim - 在 Vim 中快速拉取

Vimscript : how pass variable/float into string?

vim - 如何删除 vim Powerline 中的一段?

java - 最佳实践指南 : Swing

vim - 在VIM中移动超过行尾的字符数

Vim 永久语法高亮

shell - vim shell 键映射以执行 shell 命令