Best Color Scheme For Coding, Easiest On the Eyes?
Marzubus writes "I tend to do a lot of code editing in vim and sometimes get the 'burning eyes' or headaches. I have been trying to find a background / foreground combination for my terminal sessions which is easiest on the eyes but cannot seem to find any real data on this subject. Does anyone know of a study / data on this topic?"
I doubt that the colors will make half as much difference as the quality of your monitor, unless you've been using chartreuse on magenta or something. Not that I know a great deal about the technical details, but I have observed that many cheaper CRTs or LCDs seem to make my eyes hurt sooner than a more expensive one. Apple's monitors are excellent for this, BTW, but they do price them terribly high. These days I'd expect you can get something equivalent for less, though it won't be a $129 model. Also, in 2004 the same question was discussed at length here, probably at least some of that is still relevant.
Caveat Utilitor
I've looked into this topic a few times in the past...
Last time, I found a page that shows samples of hundreds of VIM color schemes:
http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-pl.html
I don't use VIM (I use JOE), but the color schemes are easy to convert manually
Whats nice is that you can scan through a _lot_ of schemes very quickly, and easily pick out the ones that work very well.
Zenburn is a low-contrast colour scheme for low-light conditions. It is popular color scheme among programmers because it is very easy on the eyes.
Legend says it was used by the ancients when they developed teh internets and our realm.
* http://www.codinghorror.com/blog/archives/000682.html
* http://slinky.imukuppi.org/zenburn/
* http://www.vim.org/scripts/script.php?script_id=415
* http://slinky.imukuppi.org/2006/10/31/just-some-alien-fruit-salad-to-keep-you-i n-the-zone/
* http://termos.vemod.net/zenburn-for-konsole
It is I, 1100101, and this was asked three months ago with a good discussion. I guess slashdot operates in quarterly cycles. :)
Here is the previous discussion: http://science.slashdot.org/article.pl?sid=08/04/08/2213222
As to not karma-whore, here was my response as a doc...
http://slashdot.org/comments.pl?sid=515908&cid=23008272
This combination is the most relaxing for the eye. Also, illuminate the area around and behind the monitor.
Why ? Depth-of-focus. Brightness will make the pupils contract, which increases the depth of focus and decreases the amount of regulating that the eye needs to do.
Maybe you need to have your vision checked, too. Having a quarter of a diopter too much or too little is hardly noticable, but wil give you headaches in the long run.
Try the high contrast theme with your screen brightness adjusted to a comfortable level. Works for me!
The few scientific studies I've found on readability indicate that there is no color scheme that significantly enhances readability -- I would think readability would only be part of the issue regarding the eye strain problem.
So, what about making your own bias light for your monitor? That will _definitely_ reduce eye strain.
I love Zenburn. I use it on all my machines now and at work.
But there is one thing you should do in your .vimrc prior to setting :colorscheme zenburn, and that is forcing the use of 256 colors:
Also I found that the search highlighting wasn't visible enough for my taste, so I tuned it. After :colorscheme zenburn I have:
And if you like to have a little more contrast, then insert the following before your :colorscheme zenburn:
which together makes for this:
You'll get it now: Depth of focus. Bright-on-dark results in a darker screen overall than dark-on-bright. This means that your pupils will open wider (to let more light in), which results in a smaller depth of focus (optics 101, ask anyone whose hobby is photography). And this, in turn, means that your eye has to re-focus more often.
Matching brightness to ambient lighting is much more important than color scheme (unless you are going nuts with red on blue or something). I have been working as a coder for 12+ years now with a lot of 14 hour+ days...
I never had much problem with CRTs. I prefer white backgrounds (standard VIM with syntax highlighting) with the brightness toned down to near paper levels for easy viewing.
Most of the bigger LCDs I have tried lack the range of brightness control as they fight for supremacy in the specification wars. I have purchased LCDs of all three types (VA/TN/IPS) and in sizes ranging from 17" to 30".
Eye comfort has correlated most strongly with how low you can modulate the brightness. On most big panels this modulation is quite poor when they aim for 400-500 cd/m2 which is insanely bright and hurt my eyes instantly regardless of color scheme (bright on dark or dark on bright both hurt). Even when these beasts are at ZERO brightness they are still often over 200cd/m2 which is completely nuts in a normal home lighting. You next have to resort to using the blocking characteristic of the LCD panel to lower it further which results in contrast going down the drain. Or set up more lighting which seems like a waste in terms of energy if nothing else.
After all my purchases I have ended up with lower brightness cheap TN panels. These modulate to the dim end very nicely and tend to have fairly clear screen anti-glare coatings for nice clean text with a paper in light level brightness achievable.
I recommend something like the Benq G2400W with it's nice 250cd/m2 max brightness (and therefore very good lower light performance).
YMMV.
their idea of text smoothing is to apply Gaussian blur to it and smudge it a bit. They do not use advanced manipulation like clear type does
LOL!! Incorrect. The Mac uses subpixel anti-aliasing just as ClearType does, but it uses a slightly different hinting algorithm. Of the two, the Apple way is probably better subjectively for most people. More info here: Font smoothing, anti-aliasing, and sub-pixel rendering and here: Texts Rasterization Exposures
I don't know too many people who move back and forth much when sitting at a computer coding...unless, like mentioned above, you're coding in a rave.
Yes, but you look at different parts of the screen, which are different distances from your eyes. Incidentally, wikipedia suggests that the term should be "depth of field" rather than "depth of focus". Depth of field refers to the amount of the image that is in focus without refocusing; depth of focus would be the distance between lens and retina.
This comes up on /. every so often, and I'm summarizing here the advice from a few people who (to me at least) sounded knowledgeable about the topic last time it came up.
Based on this advice I've switched to blue on light beige (#0000C0 on #FFFFC0). It has a strong contrast in two channels, no change in the third, and suits my office (reasonably bright, but lit with non-natural light). So far, this is working well for me.
I can't stress the "ClearType" sub-pixel rendering enough. At work i switched from a CRT to an LCD and got eyestrain almost immediately afterwords. Enabling that feature caused the problem to go away just as fast.
There have been some interesting studies of the effects of color on sleep (and cancer suppression). The results might adjust your choice of display colors. Here is an example report:
http://www.sciencenews.org/view/generic/id/6084/title/Blue_light_keeps_night_owls_going
It seems that the body's melatonin production is the important factor.