Skip to content

MacVim & Solarized background=light gives strange results. #597

@chestone

Description

@chestone

After installing yadr I tried to switch to the light version of Solarized in MacVim and found some funky results shown below.

The end of my .vim/settings/yadr-appearance.vim is below.

  1 " Make it beautiful - colors and fonts
  2
  3 if has("gui_running")
  4   if has("gui_macvim")
  5     set background=light
  6     colorscheme solarized
  7   endif
  8
  9   "tell the term has 256 colors
 10   set t_Co=256
 11
 12   " Show tab number (useful for Cmd-1, Cmd-2.. mapping)
 13   " For some reason this doesn't work as a regular set command,
 14   " (the numbers don't show up) so I made it a VimEnter event
 15   autocmd VimEnter * set guitablabel=%N:\ %t\ %M
 16
 17   set lines=60
 18   set columns=190
 19
 20   if has("gui_gtk2")
 21     set guifont=Inconsolata\ XL\ 12,Inconsolata\ 15,Monaco\ 12
 22   else
 23     set guifont=Inconsolata\ XL:h17,Inconsolata:h20,Monaco:h17
 24   end
 25 else
 26   let g:CSApprox_loaded = 1
 27
 28   " For people using a terminal that is not Solarized
 29   if exists("g:yadr_using_unsolarized_terminal")
 30     let g:solarized_termcolors=256
 31     let g:solarized_termtrans=1
 32   end
 33 endif
 34
 35 set background=light
 36 colorscheme solarized

I have also tried adding the background & colorscheme to my .gvimrc, but to no success. Any help would be appreciated.

vim_broken_solarized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions