7

I am having a problem with my MacVim color schemes. I have 'syntax on' in my .vimrc and I work mostly with Python.

As an example, I have attached a screenshot of what the "default" color scheme looks like in MacVim to me. I am having this problem with varying degrees of color differences for all the different schemes. Whenever I find a scheme I like online, it never looks like it does in the screenshot.

Any ideas on what the problem is?

here

kamek
  • 2,390
  • 2
  • 19
  • 15
  • Does the Mac-Terminal support 256-colors per default? –  Feb 14 '12 at 22:36
  • 1
    MacVim is Mac OS X's equivalent of GVim. – romainl Feb 14 '12 at 22:53
  • Could you show the content of your `~/.vimrc`? – romainl Feb 14 '12 at 22:54
  • [Here is my vimrc](http://pastebin.com/Ua8BBibc) – kamek Feb 20 '12 at 21:15
  • Funny enough, the only webpage that Google has indexed with the phrase [`desertmarc vim colorscheme`](https://www.google.com/search?client=ubuntu&channel=fs&q=desertmarc&ie=utf-8&oe=utf-8#hl=en&client=ubuntu&hs=QJd&channel=fs&sa=X&ei=UNBCT_W6H-SjiQKsvey8AQ&ved=0CBsQvgUoAA&q=desertmarc+vim+colorscheme&nfpr=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=e6faae0b5da64255&biw=1209&bih=1116) is _your_ pastebin. Where can this `desertmarc` scheme be found? That'd make reproducing your problem far easier. :) – sarnold Feb 20 '12 at 23:01
  • 1
    It's a homemade colorscheme. But just for reference, you can switch that line to anything. Changing it to colorscheme=default gives the colorscheme shown in the image in my original post. However, I just noticed something interesting. Colorschemes look different if they are set in the vimrc versus being manually set (:colorscheme default) after MacVim has loaded. Really weird. – kamek Feb 21 '12 at 06:27
  • Thank you, @kamek, your comment helped me a lot. Color scheme should be set via `.vimrc` script to be rendered correctly in MacVim. – Geradlus_RU Jul 09 '14 at 20:53

2 Answers2

5

Many themes provide modes for both dark background colors and light background colors. If you'd like to keep using this theme, try running:

:set background=light

Most of the themes I've seen were designed with a dark background and lighter text in mind -- I personally find a mostly-black screen easier on my eyes than a mostly-white screen -- so perhaps you just need to change the background color to something dark. In which case, you'd then want to run:

:set background=dark
sarnold
  • 102,305
  • 22
  • 181
  • 238
  • Although this did change the colours, it did not correct them. They are just different, but still wrong. – kamek Feb 20 '12 at 21:12
0

The problem seems to be in ~/.gvimrc, look at what it does with the highlights (such as highlight NonText guibg=grey80). I've just placed them in an if !exists("stupid_colors").

Keldon Alleyne
  • 2,103
  • 16
  • 23