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

Weird Coloring Issue #450

Closed
amadeus opened this issue Jul 26, 2013 · 6 comments
Closed

Weird Coloring Issue #450

amadeus opened this issue Jul 26, 2013 · 6 comments

Comments

@amadeus
Copy link

amadeus commented Jul 26, 2013

I've noticed bizarre issue with CtrlP that is very easy to replicate.

By default, if I bring up CtrlP, it looks like this

image 1

However, if I just perform a quick:

:syntax on

I get this:

image 1

Seems all the little > marks get colored white.

@kien
Copy link
Owner

kien commented Jul 27, 2013

I can't see the images. Can you re-upload them somewhere else?

@kien
Copy link
Owner

kien commented Jul 27, 2013

Also, running :syntax on doesn't change anything for me.

@amadeus
Copy link
Author

amadeus commented Jul 28, 2013

Sorry about that, the images should work now.

@kien
Copy link
Owner

kien commented Jul 29, 2013

I see. It's still not reproducible. Can you simplify your config and find whatever that contributes to this? Also, what ctrlp version are you using? What's your Vim version? Does it happen when you run :syntax enable? What happens if you have this in your .vimrc?

hi CtrlPLinePre guifg=red ctermfg=red

The highlight group for the > char is CtrlPLinePre, which by default uses your colorscheme's Normal group's background color as its foreground color.

@amadeus
Copy link
Author

amadeus commented Jul 29, 2013

So I conducted a bit more testing and found some interesting results.

For reference, I use NeoBundle as a package manager, but I highly doubt this plays any roll in this (since I also used to have this problem when using Vundle).

I disabled all plugins, except for CtrlP and NeoBundle (the 2 minimum requirements to use CtrlP for me without having to really reconfigure folders and stuff.

I also had my entire vimrc settings disabled, so basically a bone stock MacVim with NeoBundle and CtrlP only, with just their default settings. Everything that I described above in my initial posts with the screenshots happens as I described it (with a different theme of course, since it's the basic default light theme).

However, I was able to fix the problem by actually setting your CtrlPLinePre hi group in my color theme as per your example above.

So I guess in summary: The problem doesn't exist if you set the colors yourself, but it does if you don't.

@kien
Copy link
Owner

kien commented Jul 29, 2013

OK, I think I found the cause. It's the :hi clear line that many colorschemes have. I use a modified, stripped down version of molokai which doesn't have that line, so even in minimum config, the issue didn't manifest.

@kien kien closed this as completed in b5d3fe6 Aug 3, 2013
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

2 participants