When editing code in Vim, I often use caps lock when writing files to ALL CAPS. However, I often forget to disable the cap lock when I finished with the title part. This does not hurt (as j moves down, but J joins the current line with a line below).
Usually, when I exit insert mode, I want to disable the lock. How can I add something to my .vimrc so that it can disable the header lock when exiting insert mode? Alternatively, how can I add something to my .vimrc so that it alerts me (status bar? Beep? Any warning is ok) if I have a lock lock when I exit insert mode?
Thanks!
Sam king
source share