highlight group not found: Normal #31

yegle opened this Issue Jan 19, 2012 · 6 comments


None yet
7 participants

yegle commented Jan 19, 2012

This error appears when I enable indent-guides by <leader>ig

Error detected while processing function <SNR>22_IndentGuidesToggle..indent_guides#toggle..indent_guides#enable..indent_guides
line    2:
E411: highlight group not found: Normal
Press ENTER or type command to continue

The file content on which I'm enabling indent-guide

#!/usr/bin/env python

def helloworld():
    print "Hello World!"

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan  6 2012 15:24:46)
Included patches: 1-393
Modified by Gentoo-7.3.393
Compiled by root@localhost
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path 
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv 
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
+mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse 
+mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme +netbeans_intg 
+path_extra -perl +persistent_undo +postscript +printer +profile -python 
-python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent 
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary 
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo 
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim 
+xsmp_interact +xterm_clipboard -xterm_save 
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -pipe -march=native -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: x86_64-pc-linux-gnu-gcc   -Wl,-O1 -Wl,--as-needed -L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lnsl  -lcurses -lacl -lattr -ldl 

nathanaelkane commented Jan 23, 2012

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

I have the same errors. I manually defined my indent guide colors, but I still get the error upon calling :IndentGuidesToggle. The even lines don't highlight. I am using Terminal.app in OSX, with color scheme set through their gui preferences, and and transparency set. I'll play around with my settings to see if I can figure out whats causing the muckup.

ehsanul commented Mar 15, 2012

I had the same problem in Terminal.app/OSX, with the default colorscheme. But if I specify "colorscheme default" in my .vimrc and restart vim, the problem goes away. Worked with other colorschemes too of course.

g1ra commented Mar 19, 2012

colorscheme default
to .vimrc
SOLVED the problem for me.

LukeGT commented Aug 1, 2012

@g1ra, your solution worked, thankyou!

afternoon added a commit to afternoon/dotvim that referenced this issue Dec 2, 2013

unphased added a commit to unphased/vim-config that referenced this issue May 8, 2014

dalguji commented Jan 6, 2015

Adding to g1ra's comment, my solution was as below in .vimrc with OSX Terminal.app (and Novel theme). Hope this helps anyone with the same issue.

colorscheme default
Plugin 'nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1 
let g:indent_guides_auto_colors = 0 
let g:indent_guides_guide_size = 1 
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=darkgrey ctermbg=252
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=darkgrey ctermbg=251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment