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

Syntax Highlighting different compared to the sample gif provided. #1000

Closed
symbolix opened this issue May 27, 2014 · 10 comments
Closed

Syntax Highlighting different compared to the sample gif provided. #1000

symbolix opened this issue May 27, 2014 · 10 comments

Comments

@symbolix
Copy link

Hi,
This is more like a quick question. First of all, things have been working fine so far. The only thing that I have noticed is that the colours (not the colour scheme) in the example animated GIF file provided at the first page of the project has slightly more detailed colour codes. For example std::vector all being differently colour coded.

Is this a result of an extra plugin? Cause I have all the completion and diagnostic functions working, only that the colour structure in my vim is not that detailed (I am using the solarized colour scheme). As I said, I do not think this is a colour scheme issue, more like an extra layer of tag process, maybe CTAGS active?

Any ideas? Thanks.

@vheon
Copy link
Contributor

vheon commented May 27, 2014

I use solarized as well but never used CTAGS and I have more or less the same color structure. I personally use my fork of vim-polyglot and have a couple of plugins for enhance the cpp syntax. Check the build file.

EDIT: And maybe you should check vim-operator-highlight

@symbolix
Copy link
Author

So the question was, this GIF file, demonstrating YouCompleteMe's completion in action:
https://camo.githubusercontent.com/1f3f922431d5363224b20e99467ff28b04e810e2/687474703a2f2f692e696d6775722e636f6d2f304f50346f6f642e676966

How come that it happens to have a more detailed color codes? Is it a specific plugin? Cause YouCompleteMe is not doing that. Sorry for repeating the question, but I still need to find an answer to that.

Thanks for your reply.

@vheon
Copy link
Contributor

vheon commented May 27, 2014

YCM do nothing about color codes, so you have to look somewhere else and I pointed you in the right direction (you should've just open the build file):

@symbolix
Copy link
Author

Sure. I got that. I have installed "octol/vim-cpp-enhanced-highlight", "vim-jp/cpp-vim" and "vim-operator-highlight". It seems like "cpp-vim" and "operator-highlight" are not doing anything right now. Maybe some kind of a syntax conflict? "cpp-enhanced-highlight" seems to be working. Thanks. I might go on and submit issues related to "cpp-vim" and "operator-highlight".

@vheon
Copy link
Contributor

vheon commented May 27, 2014

That is strange, because I use solarized with these plugins and it color the code just fine... this is how I see the code in the gif

@symbolix
Copy link
Author

This is how I see things:
http://i.imgur.com/M2gSZp9.png

Maybe it is the operators etc. that is not active. Everything else is fine. Could you please provide a bit more information about how to install "vim-polyglot", if possible. Thanks.

@vheon
Copy link
Contributor

vheon commented May 28, 2014

vim-polyglot is just a collection of plugin shipped as one. So you could install it with Vundle, pathogen, Neobundle, vim-plug or whatever you use. But I just realize that the parenthesis are colored by this file that I have in my configurations, but I don't remember where I grab it.

@symbolix
Copy link
Author

Thanks. So my screen-grab kind of looks ok? About the "vim-polygot", the confusing part is this: "Use this repository as submodule or package." I suppose this just means that it can be installed with Vundle 'sheerun/vim-polyglot'? Right?

Thanks for the help.

@vheon
Copy link
Contributor

vheon commented May 29, 2014

@symbolix yes vim-polyglot is just a bunch of language specific plugins merged as one so you will not have 20 line in your vimrc saing Plugin 'author/some_language_plugin' But if you only care of those two plugins for me it not makes any sense to install it. Just install those two and if you care about the colored delimiter such as ()[];:: use that file that I linked in the last response.

@symbolix
Copy link
Author

Great! Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants