February 17, 2015

Toggling the background in Vim

I end up switching the background on my terminal a lot depending on where I am working and the ambient light conditions around. If you use vim, you know this can lead some text becoming almost invisible ( with the default colors only ? ) when you switch from a light background to a dark background or vice versa.
So, I ended up mapping a couple simple shortcuts for setting the vim background to dark or light :