On Sat, Mar 14, at 06:27 Dasn wrote: > > Hi, > :h catch-interrupt > shows an example of catching interrupts, but it works not as it was > described. The document says: > > > If you press CTRL-C at the prompt, the script is terminated. > > But the problem is: when I press CTRL-C at the prompt, the script is not > terminated, instead, it will give you another prompt. > > How to catch the interrupts at 'input()' prompt?
You can surround the try/endtry block with another try/endtry and use a catch to insert a break statement so you can get out of the loop. > Dasn Regards, Ag. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
