Search code examples
vimvim-plugincolor-scheme

vim colorscheme not working in terminal vim but working in gvim


I am using the vim solarized color scheme. the following is the setting in my .vimrc file

Plugin 'altercation/vim-colors-solarized'
syntax enable
set background=dark
colorscheme solarized

the following image is the vim rendering between the terminal and the gvimenter image description here What can i do to fix the terminal vim?


Solution

  • This worked for me. In the .vimrc following lines needed to be added

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

    additionaly you can add the gnome solarised to your terminal