vim-hardtime, but for avoiding mouse usage vim-hardtime is a plugin that helps you break bad habits and use more efficient movement functions. I could see a similar plugin being useful at the OS-level. It'd work by adding a 1 second pause whenever you switch from the keyboard to the mouse.