Hello!

I used

  vim -u NONE -N prblm.vim
  :so %

where prblm.vim has the following lines:

 let pat='\%1l\%1c.*\%5c'
 call matchadd('WildMenu',pat,1,4)
 try
  call matchadd('WildMenu',pat,1,4)
  finish
 catch /^Vim:\%((\a\+)\)\=:E801/
  echo "caught error E801"
 endtry

Instead of  "caught error E801" I get

Error detected while processing /home/cec/prblm.vim:
line    4:
E801: ID already taken: 4

What I expected to happen:

 a) the "let " gets highlighted with WildMenu highlighting  (this works)
 b) the second attempt to highlight the same spot with the same id 
should yield an error message (ok)
 c) except that the try-catch-endtry should've caught the error message, 
echoing "caught error E801" instead  (Doesn't Work!)

Regards,
Chip Campbell



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

Raspunde prin e-mail lui