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 vylight.vim
  2. Copy the file to your ~/.vim/colors/ directory
  3. In Vim, do :colorscheme vylight

11 Responses to “New Vim colour scheme – vylight”  

  1. 1 Brendon

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

  2. 2 Shane

    Thanks :-)

    The font is Consolas, from Microsoft.

  3. 3 kernel sander

    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

    Awesome theme, thanks!

  5. 5 Rudolf Adamkovic

    This one looks really elegant. Thanks for sharing!

  6. 6 Amitava

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

  7. 7 moopet

    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

    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

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

  10. 10 BrokenBrake

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

  11. 11 Jack Wade

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

Leave a Reply