Results 1 to 9 of 9
Hi, I noticed that vim, given the same configuration file, shows different colorschemes. On ubuntu, I get a dark purple background, and on red hat enterprise, I get a black ...
- 06-17-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
[SOLVED] vim colorscheme difference between Redhat/Ubuntu
Hi, I noticed that vim, given the same configuration file, shows different colorschemes. On ubuntu, I get a dark purple background, and on red hat enterprise, I get a black background. I am using RHE, and I would like vim on the redhat distro to have the colors that ubuntu's vim does. How would I go about doing this?
Here is my .vimrc file:
syntax on
set background=dark
colorscheme evening
set autoindent
set smartindent
set showmatch
set cursorline
set lazyredraw
set shiftwidth=4
set tabstop=4
set number
- 06-18-2010 #2Just Joined!
- Join Date
- Nov 2005
- Posts
- 9
Check out:
/usr/share/vim/vim70/colors
There is an evening.vim file that defines the colors. Compare that to one from Ubuntu and see if they match. You might be able to copy it from Ubuntu, rename the RHEL one and drop the Ubuntu evening.vim file in. Your vim should now have the colors of Ubuntu.
- 06-21-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
- 06-24-2010 #4Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
bump; any other ideas?
- 06-25-2010 #5Just Joined!
- Join Date
- Nov 2005
- Posts
- 9
One of my co-workers mentioned that each shell also has certain default color characteristics. These default settings may be taking over any of the vim settings.
When you open a terminal, which type are you opening and what are the default parameters - check the preferences?
- 06-25-2010 #6Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
Hm I'm not sure what you mean by this, but I'm using the default options, and the version is
GNOME Terminal 2.16.0
- 06-29-2010 #7Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
Bump (10 char)
- 06-30-2010 #8Just Joined!
- Join Date
- Nov 2005
- Posts
- 9
Just my wandering thoughts...
IMHO...
I'm not familiar with Ubuntu but with RHEL and Fedora, the colors match the system theme which will usually be different per distro. From the shell in RHEL/Fedora, if you click Edit --> Current Profile..., and click on the Colors tab, you will see that it defaults to using the color settings of the system theme. You can also change the Palette here.
All I was saying is that the two default settings between distros are probably defaulting in this manner. Since Ubuntu and RH probably use a different theme and palette, it really is not just which version of Gnome you are using.
I hope this leads you to the right answer and I look forward to seeing the solution myself.
- 07-07-2010 #9Just Joined!
- Join Date
- Jun 2010
- Posts
- 6
Fixed! The issue was a different palette. Thanks for the help!
If anyone in the future wants to know the default palette colors in ubuntu, here they are:
#2E3436 #CC0000 #4E9A06 #C4A000 #3465A4 #75507B #06989A #D3D7CF
#555753 #EF2929 #8AE234 #FCE94F #729FCF #AD7FA8 #34E2E2 #EEEEEC



