tweekmonster / braceless.vim

:snake: Text objects, folding, and more for Python and other indented languages.
395 stars 13 forks source link

No highlight in gvim, fine in vim though #5

Closed AlbericC closed 8 years ago

AlbericC commented 8 years ago

with the same .vimrc, and no .gvimrc, I can't get te indent guide to appear. It works perfectly in vim, though.

AlbericC commented 8 years ago

Extra info: After a Flake8 or syntactic check, the highlight bar appears sometimes, it seems random. I'll try to investigate further.

tweekmonster commented 8 years ago

This could be fixed in #4. Could you confirm this after an update?

jeetsukumaran commented 8 years ago

You need to explicitly define the highlight color for the gui mode in your vimrc.

By default, only console vim colors are defined:

:highlight BracelessIndent
BracelessIndent xxx cterm=reverse ctermfg=3 ctermbg=0   

You need a line like the following in your ~/.vimrc to support GUI mode vim colors:

  highlight BracelessIndent gui=none guibg=#353030

Or, specifying colors for both GUI and console:

 highlight BracelessIndent gui=none guibg=#353030 cterm=reverse ctermfg=3 ctermbg=0   
tweekmonster commented 8 years ago

I set the default to:

highlight default BracelessIndent ctermfg=3 cterm=inverse guifg=#ffcc00 gui=inverse
AlbericC commented 8 years ago

I forgot to confirm, it worked perfectly. Sorry for the delay.