On 21/06/08 09:17, Matt Tolton wrote:
>> see ":help exception-handling"
>
> I scanned that and I'm not seeing how it helps me...it's all talking
> about vimscript.  Could you please elaborate?
>
> Thanks,
>
> Matt

So? I thought you were writing a Vim function. Each line in a Vim 
function is a Vim ex-command; in other words, the language used to write 
Vim functions is vimscript.

To find out why an error happened, wrap the code of the function in a 
":try" - ":endtry" block, catch any exceptions, and display the error 
message and/or additional info gathered wherever the exception happened.


Best regards,
Tony.
-- 
The computer is the ultimate polluter: its shit is indistinguishable
from the food it produces.

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

Raspunde prin e-mail lui