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.
Join the DZone community and get the full member experience.
Join For FreeHere 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 “:”
Cheers!
Published at DZone with permission of Venkatt Guhesan, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments