I've been experimenting with different colorschemes in vim lately. My problem is that the colors used by the schemes only use the 16 colors in my Profile Preferences, even though my terminal supports a 256 palette.
When I put in tput colors
it returns 256. I have my TERM
variable set to xterm-256color
. I have set t_Co=256
in my .vimrc
. On this question How do I enable full-color support in Vim? there is a python script that will display your available colors. I see the full range of colors that the person shows in their screenshot.
Yet even after all of this, the colors in my vim are only the ones listed in Profile Preferences. I know this because I can change the colors and see the corresponding "darkgreen" (or whichever color I am selecting) font change to whatever color I changed it to.
So whenever I specify a colorscheme, it has the general look and appearance of it, but it's not exactly correct. I would like to have my color schemes look how they do in the screenshots I see of them.
Is it possible to do this or will I always have to manually change the 16 colors in my Profile Preferences to perfectly match a colorscheme?
I'm using the vim-gnome
package in Ubuntu 14.04 with gnome-terminal. Thanks for any help.
:set term
and:set t_Co
return? – muru Feb 18 '15 at 03:47vim-gnome
is about as full as it gets now. How about another terminal?xterm
?xterm
's sibling whose name I don't recall? Orgvim
directly, without a terminal? – muru Feb 18 '15 at 04:01:set t_Co=256
and:set t_Co=8
– muru Feb 18 '15 at 04:13gnome-terminal
andterminator
without the need of setting any TERM variables, just the:set t_Co=256
in.vimrc
. – Rmano Feb 18 '15 at 08:55