I've tried

syntax on
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized

but it doesn't look like GVim, how can I achieve that?

Right now Right now

  • Are you running vim in terminal or gui? You used both gvim and terminal tags!
    – 3N4N
    Apr 15, 2018 at 15:41
  • @EnanAjmain I want to run it in terminal, how can you see that? Apr 15, 2018 at 15:57
  • Did you configure your terminal emulator according to the Solarized installation instructions? Apr 15, 2018 at 17:42
  • @Carpetsmoker that's the problem, I don't know what to do exactly. Apr 15, 2018 at 17:59
  • Since you don't know how to configure solarized colorscheme properly, I'm guessing you don't need the added customizability of it. Then, take a look at this. It's easy to set up with simple hacks :)
    – 3N4N
    Apr 16, 2018 at 1:44

3 Answers 3


According to the readme of the vim sector of ethan's solarized colorscheme, you need to set the colorscheme of your terminal explicitly. You can take a look at base 16. Install it, and run base16_solarized-dark. Then vim will, hopefully, show the colors properly. And also put this in your vimrc:

set termguicolors

in place of

set t_Co=256
  • If you want to also have the terminal using solarized, it is probably better indeed.
    – padawin
    Apr 11, 2019 at 11:27

I faced the same issue couple of weeks ago.

If you look inside of solarized.vim, you will find a section GUI & CSApprox hexadecimal palettes (in my case line 235).

There are a bunch of ifs, the 2 first being if (has("gui_running") && ...)

In the terminal, it does not, so depending on if you are using 16 or 256 colors, you will be in the 3rd or 4th elseif.

-If you really want the blue of Solarized, you can set your gnome-terminal profile to use solarized colors and change in solarized.vim the line:

let s:base03 = "234"


let s:base03 = "NONE"

To use the terminal's default color (base03 is used for the background color).

Although I am not persuaded than modifying the theme like that is the best to do (I tried to set the variable at the end of my .vimrc but it did not work).

And as I don't want to use solarized in my terminal, just in Vim, I stayed with the grey and 256 colors of solarized by default.


Most people barely know about gnome terminal color setting, they just use existing tool to do the job.

Don't waste your time on vim setting before you setup your terminal.

  • That could be considered as a waste of time only for those who want the same theme on their terminal and Vim.
    – padawin
    Apr 11, 2019 at 12:07
  • Is that an option? I barely know this kind of stuff, some site told me my solarized is degraded if i don't change my terminal.
    – dedowsdi
    Apr 11, 2019 at 12:24
  • I don't use solarized at all on my terminal (when I type commands), but use solarized in Vim. The OP asked about solarized in Vim when using in a terminal on Gnome, not necessarily to also have solarized in the terminal (out of Vim).
    – padawin
    Apr 11, 2019 at 12:28
  • Gnome terminal? undegraded solarized color in vim?
    – dedowsdi
    Apr 11, 2019 at 12:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.