Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just 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.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6
    Quote Originally Posted by rwbenton View Post
    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.
    That didn't work unfortunately :\. And a diff didn't show anything. Any other suggestions?

  4. #4
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6
    bump; any other ideas?

  5. #5
    Just 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?

  6. #6
    Just 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

  7. #7
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6
    Bump (10 char)

  8. #8
    Just Joined!
    Join Date
    Nov 2005
    Posts
    9

    Lightbulb 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.

  9. #9
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...