vimvim-pluginui-guidelines

How to set vim highlight ColorColumn guideline transparency?


I have set :highlight ColorColumn ctermbg=1, but the guideline is too much dimmed. How to increase the vim guideline transparency, so I can see better which characters it has behind it?

enter image description here

Alternatively, the setcolumn guideline could be like in Sublime Text, just a thin line:

enter image description here


Solution

  • Vim doesn't use transparency for the color settings, in this case you are setting the color to ANSI 1, or Red. If the syntax highlighting on top is close to the same color it will be hard to read.

    On my system I have the background and black configured slightly different so find good results by using ANSI 16:

    highlight ColorColumn ctermbg=16
    

    Or if you have a 256 color terminal:

    highlight ColorColumn ctermbg=238
    

    Which might look like this:

    enter image description here