O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Color schemes

Vim has a plethora of beautiful color schemes available, both packaged with Vim and made by community members.

You can change the color scheme by changing the colorscheme setting in your .vimrc, as follows:

:colorscheme elflord

To get a list of currently installed color schemes, execute :colorscheme Ctrl + d. This will list every installed color scheme:

In the preceding example, I'm using :colorscheme PaperColor from https://github.com/NLKNguyen/papercolor-theme.

You can further customize the color scheme by setting the background option to either light or dark (the option must precede the colorscheme call).

For example, this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required