Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E411: highlight group not found: Normal #131

Closed
vectra-tme opened this issue Apr 15, 2018 · 4 comments
Closed

E411: highlight group not found: Normal #131

vectra-tme opened this issue Apr 15, 2018 · 4 comments

Comments

@vectra-tme
Copy link

I am getting the following error:

Error detected while processing function <SNR>43_IndentGuidesToggle[1]..indent_guides#toggle[4]..indent_guides#enable[8]..indent_guides#init_    script_vars[7]..indent_guides#capture_highlight:
line    2:
 E411: highlight group not found: Normal  

I found several previous bugs that discuss color scheme workarounds so I added the following to .vimrc

 let g:indent_guides_auto_colors = 0
 hi IndentGuidesOdd  guibg=red   ctermbg=3
 hi IndentGuidesEven guibg=green ctermbg=4 
@tylermolamphy
Copy link

tylermolamphy commented Apr 25, 2018

I am seeing the same, but only when opening vim via the terminal command alone, and landing at the welcome page." If I launch vim with any file as an argument, (or by calling -c and opening a vimwiki as I usually do,) I do not see the reported error.

The behavior started when I set let g:indent_guides_enable_on_vim_startup = 1.

screen shot 2018-04-24 at 18 45 54

@ianyepan
Copy link

Having the same issue here, but everytime I press to continue, it seems all right. I wonder if I can simply disable the promt.

@ianyepan
Copy link

Hey guys, I found a way to fix this!! It's because the highlight group name "Normal" wasn't defined. So just randomly define the highlight group name "Normal" in the indent_guides.vim file.
(for me it's located in the '~/.vim/bundle/vim-indent-guides/autoload' folder
What I did was simply put "highlight Normal ctermbg=NONE" in the first line and it works! No more errors.
Hope it helps.

@nathanaelkane
Copy link
Collaborator

That's correct @ianpan870102, thanks for commenting.

Usually this happens when a colorscheme hasn't been explicitly set, or your colorscheme doesn't define colours for the Normal highlight group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants