I'm an avid vim user and have started to write some SQL code recently. I like to write my SQL statements in CAPS and sometimes forget to switch CAPS LOCK off and I then quickly wreak havoc on my code before I realise what's happening.
I have so far not found any way to tell whether the CAPS LOCK key is on other than looking at my keyboard (which requires me to look away from the screen which I consider a big delay).
Ideally I would like vim to automatically change my background colour whenever CAPS LOCK is on but I'd be willing to settle for some other on-screen indicator of CAPS LOCK status as a compromise.