1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
heading::Repeating{nbsp}commands[repeating]
Xulmus can repeat a number of commands and record macros.
section::Single{nbsp}repeats[single-repeat]
|.|
||[count].||
____________________________________________________________________________
Repeat the last keyboard mapping [count] times. Note that, unlike in Vim, this
does not apply solely to editing commands, mainly because Xulmus doesn't
have them.
____________________________________________________________________________
|@:|
||[count]@:||
____________________________________________________________________________
Repeat the last Ex command [count] times.
____________________________________________________________________________
section::Macros[macros,complex-repeat]
|q|
||q\\{0-9a-zA-Z}|| +
____________________________________________________________________________
Record a key sequence into a macro.
Available macros are {0-9a-zA-Z} (uppercase to append).
Type [m]q[m] to stop recording.
____________________________________________________________________________
|:macros|
||:mac[ros] [a][pat][a]|| +
________________________________________________________________________________
List recorded macros matching the optional regular expression [a][pat][a]. If
no regex is given, list all macros.
________________________________________________________________________________
|:delmac| |:delmacros|
||:delmac[ros] {args}|| +
||:delmac[ros]!||
________________________________________________________________________________
Delete recorded macros matching the regular expression {args}. If [!] is given
all macros are deleted.
________________________________________________________________________________
|@| |:play|
||:pl[ay] {arg}|| +
||[count]@{arg}||
____________________________________________________________________________
Plays the contents of macro with name {arg} [count] times. The [m]@[m] mapping
only accepts {0-9a-z} as {arg}.
____________________________________________________________________________
|@@|
||[count]@@||
____________________________________________________________________________
Replay the last executed macro [count] times.
____________________________________________________________________________
section::Using{nbsp}scripts[using-scripts]
|:so| |:source|
||:so[urce][!] {file}|| +
________________________________________________________________________________
Read Ex commands, JavaScript, or CSS 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 _.xulmusrc_ file in your home directory and any files in
_$$~/.xulmus/plugin/$$_ are always sourced at startup. $$~$$ is supported as a
shortcut for the _$HOME_ directory. If [!] is specified, errors are not
printed.
________________________________________________________________________________
|:lpl| |:loadplugins|
||:loadplugins|| +
________________________________________________________________________________
Load all unloaded plugins immediately. Because plugins are automatically
loaded after xulmusrc is sourced, this command must be placed early
in the xulmusrc file if xulmusrc also includes commands that are
implemented by plugins. Additionally, this command allows for sourcing
new plugins without restarting Xulmus.
________________________________________________________________________________
|:ru| |:runtime|
||:runt[ime][!] {file} ...|| +
________________________________________________________________________________
Source the specified file from each directory in 'runtimepath'. Example: +
[c]:runtime plugin/foobar.vimp[c] +
Only the first found file is sourced. When [!] is given, all found files are
sourced.
________________________________________________________________________________
|:scrip| |:scriptnames|
||:scrip[tnames]|| +
________________________________________________________________________________
List all sourced script names, in the order they were first sourced.
________________________________________________________________________________
|:fini| |:finish|
||:fini[sh]|| +
________________________________________________________________________________
Stop sourcing a script file. This can only be called from within a Xulmus
script file.
________________________________________________________________________________
section::Profiling[profile,profiling]
|:time|
||:[count]time[!] {code|:command}|| +
________________________________________________________________________________
Profile a piece of code or a command. Run {code} [count] times (default: 1)
and returns the elapsed time. {code} is always passed to JavaScript's eval(),
which might be slow, so take the results with a grain of salt.
If {code} starts with a [c]:[c], it is executed as a Xulmus command.
Use the special version with [!] if you just want to run any command multiple
times without showing profiling statistics.
________________________________________________________________________________
// vim: set filetype=asciidoc:
|