Christian Brabandt wrote: > Hi yixiaodafang! > > On Mi, 25 Nov 2009, [email protected] wrote: > > >> The v:errmsg does help me to know there are any error when running the >> command. However, I am experiancing another issue. Every time when the >> command exe "tag " . searchsymbol could not find the tag, it will >> print the error messages and ask me to press any key. Even when I put >> the silent such as exe "silent " . "tag " . searchsymbol, it still do >> the same. I want the script to handle the error silently and users do >> not need to know and press any key. Are there any solution for this? >> > > use :silent! >
Alternatively, you could also use the various functions supporting tags. For example, if !empty(taglist(searchsymbol)) ... endif Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
