Closed rianby64 closed 7 years ago
I'm having the same problem with a slightly different error message.
Error detected while processing function <SNR>24_IndentGuidesEnable[1]..indent_guides#enable[8]..indent_guides#init_script_vars[7]..indent...
It only happens when I open some files, I have no idea why either.
Same issue, using https://github.com/nathanaelkane/vim-indent-guides/issues/31#issuecomment-4583981 as solution now.
Sounds like you're not using a colorscheme, or your colorscheme isn't defining colours for the Normal highlight group.
Try using a different colorscheme, or manually defining the indent guide colours:
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd guibg=red ctermbg=3
hi IndentGuidesEven guibg=green ctermbg=4
Please re-open if this is not the case.
Thanks a lot! Works to me! :+1:
can I modify the autoload scripts to make it load another highlight group other than Normal?
@Whainte there's currently no config option to change it from Normal
.
Cant I edit the vim script to make it read another highlighting group like Conceal or? and btw it mysteriously worked after manually load colorscheme default
It should work if you edit the local autoload file.
Yeah, iirc it generated a Normal when i added an explicit "colorscheme default" to the global vimrc. However i ended up changing another colorscheme which also worked pretty well
these lines didn't work for me:
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd guibg=red ctermbg=3
hi IndentGuidesEven guibg=green ctermbg=4
the same error occurred. Why is that? @nathanaelkane thank you
@yzsatgithub have you tried defining a colorscheme? e.g. colorscheme default
@yzsatgithub have you tried defining a colorscheme? e.g.
colorscheme default
@nathanaelkane No I didn't. But I do have a setting line color vc
for syntax highlighting. Is this the same as what you asked?
@yzsatgithub yep, it's all the same :colo[rscheme]
command.
If you're still getting the highlight group not found: Normal
error, it means the Normal
highlight group hasn't been defined before the Indent Guides plugin initialises. It could be that your plugin doesn't define Normal
. Maybe try defining it manually, i.e. hi Normal guibg=black
This is the message that I got after pressig
The .vimrc file that I've is:
And the file that I'm processing is
Can't understand what's going wrong. Thanks a million in advance