Next: Y
Previous: WRAP
Up: The Commands in Detail
X [?|n|string]
X
Related command: Y
With the command X you can define an abbreviation for any desired
sequence of commands and have them executed in a row.
With the command
you define X as abbreviation of `string'; `string'
has to consist of a valid command line (with one or more commands).
With the command
you ask exaEdit to execute X n times. X alone executes
the commands once. If you want to execute X without having it
defined, the error message
occurs.
In `string' any command except X is allowed. The command
Y is only allowed if it does not call X.
In this case, the execution will be terminated at the appropriate
point, generating the message:
Example:
For example, you might want to replace A with B in
every second line. To do so, you have to call the commands n2
and c/A/B/ repeatedly. Instead of repeating the commands,
you put them, combined, in X. Then you call `x 100',
which executes the content of X 100 times.
As soon as one of the commands contained in X terminates with a warning
or an error message (end of data, string not found, etc.), the
execution of X will be terminated.
With the command
you ask exaEdit to write the current definition of X on the
window. You may use this command, for example, to change the content
of X slightly. You move the cursor to the output line, make
your changes and redefine X by pressing
the return key.
Next: Y
Previous: WRAP
Up: The Commands in Detail