On Sat, Jul 08, 2006 at 01:41:26AM +0200, Nikolai Weibull wrote: >But what's the point? Some characters will already have been inserted >and they won't have had 'paste' set. I fail to see how this is a path >to follow.
Absolutely, the first N characters of your text may have been pasted incorrectly if they have newlines or the like. On a local machine, N could be as small as 2 (over 100ms that would represent a typing speed of 600cps, which is pretty snappy). Obviously, it couldn't tell the difference between a high priority process gobbling up a bunch of time while you're typing, a laggy network line between you and vim, and probably other things, but it seems like a lot of the time it would work great. Again, this is like what's already what's implemented in other places in vim, so there seems to be some evidence that it's a workable solution. It would be ideal to do read-ahead and if you have a kilobyte of text sitting there ready to read, it's probably a paste, but that gets you into trouble the read-ahead includes ":sh". Of course, some programs do discard type-ahead text, so it wouldn't be unprecedented, but I agree it would be nice not to. Thanks, Sean -- I have never been able to conceive how any rational being could propose happiness to himself from the exercise of power over others. -- Jefferson Sean Reifschneider, Member of Technical Staff <[EMAIL PROTECTED]> tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability