exists() result is sometimes misleading for a command.
Example (with GTK3 gvim linked with GTK 3.16.7):
:echo exists(':tearoff')
2
:tearoff &Help
E319: Sorry, the command is not available in this version
So for example the following code in my vimrc would produce the exact
error which it is meant to avoid:
au GUIEnter * if exists(':tearoff') == 2 | exe 'tearoff &Help' | endif
If the :tearoff command is disabled in GTK3 gvim, then IMHO
exists(':tearoff') ought to return 0, not 2.
Best regards,
Tony.
--
--
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/d/optout.