1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 06:38:12 +01:00

clarify :execute help

This commit is contained in:
Doug Kearns
2008-08-26 00:38:44 +00:00
parent a57b0b5673
commit ef84a3866f
2 changed files with 9 additions and 4 deletions

View File

@@ -221,6 +221,9 @@ const liberator = (function () //{{{
"Execute the argument as an Ex command",
// FIXME: this should evaluate each arg separately then join
// with " " before executing.
// E.g. :execute "source" io.getRCFile().path
// Need to fix commands.parseArgs which currently strips the quotes
// from quoted args
function (args)
{
try

View File

@@ -25,11 +25,13 @@ ________________________________________________________________________________
|:exe| |:execute|
||:exe[cute] {expr1} [ ... ]|| +
||:exe[cute] {expr}|| +
________________________________________________________________________________
Execute the string that results from the evaluation of {expr1} as an Ex
command. Example: [c]:execute echo "test"[c] shows a message with the text
"test".
Execute the string that results from the evaluation of {expr} as an Ex command.
Example: [c]:execute "source " + io.getRCFile().path[c] sources the appropriate
RC file.
Note: Unlike Vim this currently only supports a single argument.
________________________________________________________________________________