On Sat, 24 Mar 2007 at 6:47am, A.J.Mechelynck wrote:

> Hari Krishna Dara wrote:
> > This happened to me always by mistake and what happened today was the
> > worst. Forgetting that I have copied large amount of text into the
> > clipboard, I tried to paste it at the search prompt using ^R* and this
> > caused Vim to hang for a very long time and pressing ^C had no effect.
> > I remember that Vim used to crash when a large amount of text is pasted
> > this way, but I think that problem is now fixed, though I think a better
> > behavior is needed, e.g.,
> > - Stop and give error after reaching some limit
> > - Detect ^C and stop.
> >
> > Any comments?
> >
>
> Ctrl-C ought to be detected, but some users (especially Vim newbies on
> Windows) remap it to "yank to clipboard". You might want to try Ctrl-Break,
> which also (IIRC) has the property that (at the keyboard interrupt driver
> level) it empties the keyboard buffer (of waiting keys).
>
> Best regards,
> Tony.
>

I doubt if Ctrl-Break will be any different here. The input is not
really coming from keyboard, though Vim might internally emulate that
way, so the OS might not play any role here. In fact, I just tried it
again and observed that Ctrl-Break didn't work.

-- 
Thanks,
Hari


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

Reply via email to