Loading ...
Sorry, an error occurred while loading the content.

Customized command error handling?

Expand Messages
  • Techlive Zheng
    I know we can use `try..catch` structure to customize error handling in scripts, but is there any way to catch an error of user executed command not scripts?
    Message 1 of 1 , Nov 27, 2012
    • 0 Attachment
      I know we can use `try..catch` structure to customize error handling in scripts,
      but is there any way to catch an error of user executed command not scripts?

      E.g. if the last file in the argulist has not been edited, then executing `quit` command would fail with error "E173: * more file to edit", is it possible to catch such an error and do something with it int the script?

      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.