How can I change the syntax highlighting in vim for C/C++/PHP in particular?
Can I also change the background color so it won’t be the same as the shell’s?
How can I change the syntax highlighting in vim for C/C++/PHP in particular? Can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Before you start installing various plugins, check out pre-installed color schemes that ships with your Vim. In my case I have many of them:
To change it just use this:
Also you can download color schemes and just drop them into your VIMRC subdirectory “colors” and load them the same way. I like this one for example: http://ethanschoonover.com/solarized
And of course, you can modify those color schemes. Just copy the “default.vim” (or the one you like) to your VIMRC/colors and edit it to change colors you want.