mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:57:59 +01:00
clarify :execute help
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user