Intro
This patch for vim will detect if you are 'typing' faster than should be possible, and ':set paste', to avoid accidentally pasting code in without paste turned on, usually resulting in messed up indentation.
Usage
Use ':set autopaste=[num]' to set the rate at which paste mode is triggered. I recommend 30 (1800wpm). Zero (default) diables autopaste.
Status
autopaste was rejected by Bram on 2006/09/15, on the basis that ``Depending on chars-per-second sounds rather arbitrary''. I agree completely; Flipping modes about based on wpm is not suitable for the main vim distribution. Still, it is stable, and makes a nice toy for those of us that keep pasting code with autoindent on :).
Download
Written for vim 7.0, distributed under the same license.
Download