1

Just installed gruvbox color scheme for Vim on Ubuntu, but the color scheme is not fully supported in the terminal. It works fine on a fedora box. Do I need any additional settings?

2
  • 3
    What exactly you mean with "not fully supported in the terminal" you mean the Gnome terminal colors? The vim colors? Something else?
    – Braiam
    Jul 23, 2014 at 2:10
  • Yes vim uses Gnome terminal colors and the value was 8 in my vim. So my vim theme didn't support it since it needed at least 16
    – Arithran
    Jul 24, 2014 at 9:35

1 Answer 1

1

If your terminal supports 256 colours then set this in your .vimrc se t_Co=256 If your not sure then set this in your .vimrc se t_Co=16


Explanation:

Getting consistent colors in different terminals is challenging because different terminals support different numbers of colors.

I ran this command on my vim which showed me the current colour setup :echo &t_Co This returned 8. Most themes in vim need more colours than 8.

Source: http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal

Not the answer you're looking for? Browse other questions tagged .