Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Documentation Help nits

samintz

Scott Mintz
May
1,582
27
The What's New section of the help contains:
Plugins:
You can specify a particular plugin to execute by prefixing the function / variable / command name with the plugin name and a $. For example:

echo %_myplugin$variable
echo %@myplugin@func[abc]
myplugin$mycommand

The correct syntax for those examples should be:
echo %myplugin$_variable
echo %@myplugin$func[abc]
myplugin$mycommand
 
I like Rex's first one better!

Code:
v:\> echo %_sysutils$isfg
1

v:\> echo %sysutils$_isfg
ECHO is OFF
 
The What's New section of the help contains:
Plugins:
You can specify a particular plugin to execute by prefixing the function / variable / command name with the plugin name and a $. For example:

echo %_myplugin$variable
echo %@myplugin@func[abc]
myplugin$mycommand

The correct syntax for those examples should be:
echo %myplugin$_variable
echo %@myplugin$func[abc]
myplugin$mycommand

There's a typo (extra @ that should be a $) in the variable function example in the help. The other two are correct.
 
So does this mean that the variables accessed using the form %_var have a name "var" and are accessed with the special prefix "%_" rather than "%"? I had always thought that the name of the variable was "_var", in which case the access to the version in a particular plugin should be %plugname$_var".
 

Similar threads

Replies
3
Views
2K
Back
Top