cadre icon indicating copy to clipboard operation
cadre copied to clipboard

Ability to change sign characters and colors

Open mikekreeki opened this issue 11 years ago • 2 comments

Overriding highlighting settings in .vimrc does not seem to work for me when opening Vim.

hi  HitSign     ctermfg=6      cterm=bold   gui=bold    guifg=Black
hi  MissSign    ctermfg=Red    cterm=bold   gui=bold    guifg=Red
hi  IgnoredSign ctermfg=6      cterm=bold   gui=bold    guifg=Black

sign  define  ignored  linehl=IgnoredLine  texthl=IgnoredSign  text=~
sign  define  hit      linehl=HitLine      texthl=HitSign      text=+
sign  define  miss     linehl=MissLine     texthl=MissSign     text=-

It does work when the file is sourced manually. Is there another way to set different highlighting settings? I'm no expert in Vim plugins but looks like without using Vundle, cadre is loaded after .vimrc overriding the custom settings.

mikekreeki avatar Jul 06 '14 08:07 mikekreeki

At the moment, I just edit the plugin file directly, but I can see how that's not very robust in the face of updates to the plugin itself.

Let me look at e.g. a g:cadreHitHightlight or something.

It might also be simplest to put the vim script in autoload? I'll look at the sequence of those requires, unless someone like @tpope wants to advise.

nyarly avatar Jul 07 '14 18:07 nyarly

Future reference: vimrc loads before any plugin. Something like this probably useful: http://vim.wikia.com/wiki/Letting_variable_values_be_overwritten_in_a_script

nyarly avatar Jul 07 '14 23:07 nyarly