I work at a research laboratory and use three different OS's daily. On the Windows and Mac machines I make use of Caffeine to keep those machines from enabling the screensaver while I work on a different machine (Linux doesn't have this problem). It's very annoying to have to log in again when I switch back.
When vim or gvim are in insert mode, the character
<F15> sporadically appears in the document. I tracked it back to Caffeine after a bit of research. The website for Caffeine states that the software works by occasionally simulating a
<F15> key press event:
Of all the key presses available, F15 is probably the least intrusive (I've never seen a PC keyboard with that key!), and least likely to interfere with your work.
So Caffeine is the obvious culprit. However, I still prefer to use my favorite text editor on all three machines, and don't intend to change that just to accommodate using Caffeine.
Is there something I can put in my
vimrc to make vim ignore
<F15> key press events?
Edit For Clarity
I can't disable the screensaver timeout; it is set by the IT department for security purposes. So with the Caffeine work-around, in order to remain compliant, I have to manually lock my machines when I step away from my desk. That's not so bad; but unlocking them every few minutes is.
Also, I didn't write Caffeine, so I don't know why the developer chose to click
<F15> once a minute. I probably would have done it differently, perhaps with a slight mouse motion or touchpad tap, as @Random832 suggested.