New Vim colour scheme – vylight

If you like this colour scheme, check out vydark, the dark background version.

I have recently started playing with Objective-C and Cocoa. One of the first things that I did was to tell Xcode to use MacVim as my default code editor. In the past, I have mostly been using Vim colour schemes with dark backgrounds.

However, I now wanted a colour scheme with a light background. Something that would fit in well within the Xcode environment and OS X in general. It had to be subtle and easy on the eyes. I looked around, and couldn’t find one that I liked. So I made my own. I’m calling it vylight.

Here’s a screenshot showing syntax highlighting for Objective-C. Search strings are highlighted in light yellow. Selected text is in light blue to fit in with aqua. TODOs and FIXMEs are highlighted in light green in comments.

Text highlighting in vylight

This is what omni completion looks like:

Text highlighting in vylight

Syntax highlighting in PHP:

Text highlighting in vylight

And JavaScript:

Text highlighting in vylight

Installing vylight

  1. Download the latest version of vylight.vim from vim.org
  2. Copy the file to your ~/.vim/colors/ directory
  3. In Vim, do :colorscheme vylight
 
 
12 Comments. Leave a comment or send a Trackback.
  1. Pingback
    Trackback: vydark – a Comfortable Vim Colour Scheme for Everyday Use – Node.mu • November 26 2010

    [...] made the yang to vylight’s ying, and I’m calling it vydark. My goal was to create a dark-background colour scheme that’s [...]

  1. #1 • Brendon said on March 23 2009:
     

    Very nice color scheme, easy on the eyes. What font are you using in those screenshots? Thanks

  2. #2 • Shane said on March 24 2009:
     

    Thanks :-)

    The font is Consolas, from Microsoft.

  3. #3 • kernel sander said on December 16 2009:
     

    I prefer Inconsolata, which is a Consolas-alike, designed for programming: http://www.levien.com/type/myfonts/inconsolata.html

    Very important info for using on the mac (it is my default terminal font): no less than 13pt, and turn anti-aliasing on. Then it looks gorgeous. For gvim I use “set guifont=Inconsolata:h14″

  4. #4 • Toby said on January 11 2010:
     

    Awesome theme, thanks!

  5. #5 • Rudolf Adamkovic said on January 31 2010:
     

    This one looks really elegant. Thanks for sharing!

  6. #6 • Amitava said on May 28 2010:
     

    This is a really nice, clean and elegant theme. Thanks for sharing!

  7. #7 • moopet said on June 12 2010:
     

    This is a really good theme.
    I usually use dark colours for vim because I like the seemingly higher contrast between shades so it’s easier to see syntax at a glance, and every mostly-white theme I’d found was just unsatisfying. I’ve moved over to this for gvim and a custom dark theme for console-vim.
    Good work, and thanks!

  8. #8 • BrokenBrake said on July 8 2010:
     

    Hello! Nice screenshotes, but, from me wrong (sorry my bad english).
    See my screenshote – http://brokenbrake.biz/images/339.png
    Sad. My term 256 colors.

  9. #9 • Shane said on July 8 2010:
     

    @BrokenBrake the colour scheme was designed to be used with GVim or MacVim.

  10. #10 • BrokenBrake said on July 14 2010:
     

    Understand, I’m sorry.
    You can recommend a similar theme on Linux?

  11. #11 • Jack Wade said on August 31 2010:
     

    This theme works quite well with gvim on Linux: http://jrgp.us/screenshots/gvim2.png

 

Comment: