Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why colors are not displaying in VIM - OH-MY-ZSH

Tags:

I have seen this post :

oh-my-zsh themes don't show properly (background stays white)

But nothing helped.

Problem is in MAC VIM Colors are displaying messed but in linux all colors are working fine.

I am using iTerm 2 as in tutorial but here's how colors are showing.

enter image description here

Why this is not working ?

I think it should be link this :

enter image description here

Here are my settings in iTerm2

enter image description here

like image 590
Earon Avatar asked May 06 '16 20:05

Earon


People also ask

How do I enable colors in vim?

You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.

How do you change the theme color in oh my zsh?

To change the Theme, simply change the ZSH_THEME value in ~/. zshrc file from robbyrussell to Avit. Run the following command to update the config. Open ITerm2 > Preferences > Profiles > Colors and change the background black color to use 20% gray as shown below.

Does vim have color?

Vim comes packed with ready-to-use color schemes. Note that the Vim color schemes described in this article are applied to the code rather than the terminal's background. If you would like to change the background color of your terminal, I recommend reading How to change the color of your Linux terminal.


1 Answers

Test to see whether syntax highlighting is enabled in Vim. If you type :syntax on and the problem goes away then that's your issue, and you can correct it by adding:

syntax on 

to your $MYVIMRC file (usually at ~/.vimrc or ~/.vim/vimrc; find out exactly with :echo $MYVIMRC in Vim).

like image 123
Greg Hurrell Avatar answered Oct 05 '22 05:10

Greg Hurrell