Macros can be defined in two ways. Within Ved though the ``learn'' facility, or though an RC file. The later method is discussed in Section 19.10.
To learn a new macro, just press [Esc][M]. You will be prompted for the ``name'' of the macro to learn. Reply with any key A to Z (upper and lower case are equivalent) or 0 to 9. After the dialog popup is removed there will be a message at the bottom of the current screen (where the filename normally is displayed) advising you that the macro is being learned. Right after the message is a counter showing how many characters are in the macro buffer.
All the keys you press will be saved in a buffer, as well as appearing on the screen. This includes ``command'' type keys.
To stop the learning process, press [Ctrl-C]. Your macro is now ready to use.
Note: If you try to include more than approximately 200 characters in a macro, you will receive a warning, and the keys entered up to that point will be assigned to the macro.