Defining Your Own Macros

This section is intended for the advanced user who wishes to add functions to the supplied macro file /usr/lib/ed.macros or define a set of new macros for a particular editing task at hand. Before trying your hand at new macros you should have read both the Tutorial Guide and Reference Manual in detail. Macros are basically very simple to write, but only if you have a good grasp of the many editor commands described in the reference manual.