On Jul 13, 2013 1:30 AM, "Marc Weber" <[email protected]> wrote:
>
> for completness:
>
> such errors should only change execution flow if fun .. abort is used or
> such.

Meaning that if there is possibility of such error you should change your
code to transform it into exception always because it is possible for user
to run any code inside :try block. Just the same reason why :echoerr should
not ever be used: if you have an error anywhere you can no longer tell
whether execution will continue after the error or not.

>   silent[!] unmap doesnotexist
>
> is a shorter way than try .. except

:silent! should be used only if you are absolutely sure you know all error
messages you are trying to suppress. I normally avoid it, explicitly
matching a set of exceptions I am suppressing.

> This reply is about "working around" about what you would have done
> differently.
>
> Marc Weber
>
> --
> --
> You received this message from the "vim_dev" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
"vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui