MyThinkPond

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

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:

vim-example

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 “:”

Cheers

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: