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.

-- 
hundred-and-one symptoms of being an internet addict:
218. Your spouse hands you a gift wrapped magnet with your PC's name
     on it and you accuse him or her of genocide.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Reply via email to