On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

  • Recent Posts

    March 2016
    M T W T F S S
    « Jan   Jun »
  • Subscribe Options

  • Awards

  • Most Valuable Blogger @ DZone
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 175 other followers

  • Follow MyThinkPond on
  • Blog Stats

    • 366,804 hits
  • General Options

Fixing vim editor for dark backgrounds so comments are not dark blue

Posted by Venkatt Guhesan on March 15, 2016

vim_logoHere is a simple command that can fix your vim editor for dark backgrounds so that your comments are not showing up in dark blue (unreadable).

Example screenshot:


The temporary fix is to run the following command in the vim editor:

:set background=dark

instead of

:set background=light

The permanent fix for this is to add the command inside $HOME/.vimrc file

 set background=dark 

Please note that when you’re adding the property into the .vimrc file, you do not need to prefix it with “:”



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: