Skip to content

Instantly share code, notes, and snippets.

@yasith
Created December 22, 2011 00:11
Show Gist options
  • Save yasith/1508312 to your computer and use it in GitHub Desktop.
Save yasith/1508312 to your computer and use it in GitHub Desktop.
solarized fix for .vimrc
set t_Co=256
set background=dark
if !has('gui_running')
let g:solarized_termcolors=&t_Co
let g:solarized_termtrans=1
endif
colorscheme solarized
@cherrot
Copy link

cherrot commented Feb 11, 2015

Thanks a lot, it fixed my issue.
All my terminal setting is right (xterm-256color, solarized for terminal bla bla bla) but solarized in vim just do not work until adding these lines to .vimrc

    if(has("mac") && !has('gui_running'))

is better I think :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment