next previous up contents index
Next: ZONE Previous: X Up: The Commands in Detail


Y   [?|n|string]
Y

Related command: X

With the command Y you can define an abbreviation for any desired sequence of commands and have them executed in a row.

With the command

you define Y 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 Y n times. Y alone executes the commands once. If you want to execute Y without having it defined, the error message occurs.

In `string' any command except Y is allowed. The command X is only allowed if it does not call Y. 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 Y. Then you call `y 100', which executes the content of Y 100 times. As soon as one of the commands contained in Y terminates with a warning or an error message (EOF, string not found, etc.), the execution of Y will be terminated.

With the command

you ask exaEdit to write the current definition of Y on the window. You may use this command, for example, to change the content of Y slightly. You move the cursor to the output line, make your changes and redefine Y by pressing the return key.
next previous up contents index
Next: ZONE Previous: X Up: The Commands in Detail