DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Fixing vim Editor for Dark Backgrounds so Comments Are Not Dark Blue

Fixing vim Editor for Dark Backgrounds so Comments Are Not Dark Blue

Most developers know the pain that is opening up vim with the default settings, especially when it comes to viewing comments. Check out a quick fix that can help alleviate that pain.

Venkatt Guhesan user avatar by
Venkatt Guhesan
·
Mar. 24, 16 · Web Dev Zone · Tutorial
Like (1)
Save
Tweet
2.31K Views

Join the DZone community and get the full member experience.

Join For Free

Here 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!

Vim (text editor)

Published at DZone with permission of Venkatt Guhesan, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • API Security Weekly: Issue 173
  • How to Migrate to the Open-Source Cadence Workflow
  • Key Metrics and Measurements to Track Project and Product Performance
  • Everything You Need to Know About Web Pentesting: A Complete Guide

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo