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 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).
The temporary fix is to run the following command in the vim editor:
The permanent fix for this is to add the command inside $HOME/.vimrc file:
Please note that when you’re adding the property into the .vimrc file, you do not need to prefix it with “:”
Published at DZone with permission of Venkatt Guhesan, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.