preservim / vim-indent-guides

A Vim plugin for visually displaying indent levels in code
MIT License
2.62k stars 162 forks source link

Error detected <SNR>27 after updating Plugins today #141

Closed andrewpritchett closed 4 years ago

andrewpritchett commented 4 years ago

Error detected while processing function 27_IndentGuidesEnable[1]..indent_guides#enable[8]..indent_guides#init_script_vars[7]..indent_guides#capture_highlight: line 2: E411: highlight group not found: Normal

Installed and updated via Vundle VIM version 8.0.1365 MacOS 10.14.6

nathanaelkane commented 4 years ago

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.