Macros

There is also a macro capability for repetitive, complex editing tasks. The editor is taught a macro by hitting the ALT T combination. After this all subsequent keystrokes are stored as the macro definition until ALT T is hit again. There is a 128 keystroke limit on the length of a macro. A macro can consist of any keystrokes except ALT T and ALT E. At the end of the macro definition the macro can be bound to a function key by hitting the desired function key. Available function keys are F1 - F12 as well as shift F1 - F12. A bound macro is subsequently executed by hitting that function key. The predefined macro for that key will of course be lost. The last learned macro whether bound or unbound can be executed by hitting ALT E. If the macro involves a search and another item is not found the rest of the macro is not executed. If macros have been bound to function keys they will be written to the configuration file splot.cfg which will be created in the current directory so that the macros will be preserved in between editing sessions.

A repeat factor for a keystroke can also be entered by prefixing the command with a multiplier which is input using the ALT number keys. The multiplier can be reset to zero during input using ALT Z. This feature also facilitates repetitive editing as an operation can be repeated several times. This is particularly powerful in conjunction with macros.