On 15-Jan-2014 09:59 +0100, boss wrote:
> Hello!
>
> A user of one of my plugins recently reported this error: `E117:
> Unknown function: gettabvar`. He also told me the version of Vim he's
> using.
>
> How can I find out when gettabvar() – or any function in general – was
> added to VimL?
>
> Being able to find this out would help me decide whether or not to use
> a particular VimL function, and/or whether to wrap it in a
> version-check guard.
Note that instead of checking for the version in the guard (which
usually involves also checking the patch level), it's easier and better
to check for the existence, in your case via if exists('*gettabvar') ...
See :h exists().
-- regards, ingo
--
--
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.