diff --git a/content/liberator.js b/content/liberator.js index d4cda1a9..a87651b5 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -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 diff --git a/locale/en-US/eval.txt b/locale/en-US/eval.txt index c4a22b2f..c7ed491c 100644 --- a/locale/en-US/eval.txt +++ b/locale/en-US/eval.txt @@ -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. ________________________________________________________________________________