1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 07:32:25 +01:00

move :source help to repeat.txt

This commit is contained in:
Doug Kearns
2008-08-04 01:18:09 +00:00
parent 6b639dc3fc
commit 40b1dad33e
2 changed files with 34 additions and 33 deletions

View File

@@ -4,7 +4,7 @@ HEADER
Vimperator can repeat a number of commands or record macros...
section:Macros[macros]
section:Macros[macros,complex-repeat]
|q|
||q {arg}|| +
@@ -43,6 +43,39 @@ Plays the contents of macro {0-9a-z}.
:play {arg} plays a recorded macro.
____________________________________________________________________________
section:Using{nbsp}scripts[using-scripts]
|:so| |:source|
||:so[urce][!] {file}|| +
________________________________________________________________________________
Read Ex commands from {file}. You can either source files which mostly contain
Ex commands like [c]map < gt[c] and put JavaScript code within a:
--------------------------------------------------------------------------------
js <<EOF
hello = function () {
alert("Hello world");
}
EOF
--------------------------------------------------------------------------------
Or you can alternatively source a file which ends in _.js_, these files are
automatically sourced as pure JavaScript files.
Note: In both cases you must add functions to the global window object like
shown above, functions written as:
--------------------------------------------------------------------------------
function hello2() {
alert("Hello world");
}
--------------------------------------------------------------------------------
are only available within the scope of the script.
The _.vimperatorrc_ file in your home directory and any files in
_\~/.vimperator/plugin/_ are always sourced at startup.
\~ is supported as a shortcut for the _$HOME_ directory. If [!] is
specified, errors are not printed.
________________________________________________________________________________
section:Profiling[profile,profiling]
|:time|

View File

@@ -523,38 +523,6 @@ the sidebar.
________________________________________________________________________________
|:so| |:source|
||:so[urce][!] {file}|| +
________________________________________________________________________________
Read Ex commands from {file}. You can either source files which mostly contain
Ex commands like [c]map < gt[c] and put JavaScript code within a:
--------------------------------------------------------------------------------
js <<EOF
hello = function () {
alert("Hello world");
}
EOF
--------------------------------------------------------------------------------
Or you can alternatively source a file which ends in _.js_, these files are
automatically sourced as pure JavaScript files.
Note: In both cases you must add functions to the global window object like
shown above, functions written as:
--------------------------------------------------------------------------------
function hello2() {
alert("Hello world");
}
--------------------------------------------------------------------------------
are only available within the scope of the script.
The _.vimperatorrc_ file in your home directory and any files in
_\~/.vimperator/plugin/_ are always sourced at startup.
\~ is supported as a shortcut for the _$HOME_ directory. If [!] is
specified, errors are not printed.
________________________________________________________________________________
|:st| |:stop|
||:st[op]||
________________________________________________________________________________