1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:02:26 +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", "Execute the argument as an Ex command",
// FIXME: this should evaluate each arg separately then join // FIXME: this should evaluate each arg separately then join
// with " " before executing. // 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) function (args)
{ {
try try

View File

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