On 17/03/09 20:19 +0100, Bram Moolenaar wrote:
> 
> Dasn wrote:
> 
> > On 16/03/09 22:18 +0100, Bram Moolenaar wrote:
> > > 
> > > This works just fine for me:
> > > 
> > >   try
> > >     let reply = input("what ")
> > >   catch /Vim:Interrupt/
> > >     let reply = "caught " . v:exception
> > >   endtry
> > >   echo reply
> > > 
> > > 
> > 
> > It seems not work for me, When I press <C-c> at the prompt (which is
> > "what "), nothing was echoed, and after that I checked the value of
> > variable 'reply', it is empty. 
> > 
> > I tested with VIM 7.2-p1-141 on an openbsd box and a VIM 7.0 release
> > version on win32. Both give me the same result.
> 
> You don't have CTRL-C mapped?  E.g. to copy text.
> 

Thanks for your reminding. I forgot to use -u NONE  when doing the test.
Sorry for the noises.

-- 
Dasn


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to