next up previous
Next: 13.4 Saving Learned Macros Up: 13. Keyboard Macros Previous: 13.2 Invoking Macros

Subsections

13.3 Predefined Macros

In addition to the macros you can set, Ved also defines a number of macros for you:

13.3.1 Filename Macro [Escape 1]

This macro prints the name of the file (the same as what is displayed at the bottom of the screen) at the cursor position.

13.3.2 Filename Macro [Escape 2]

This macro prints the extension of filename at the cursor position. The extension is the part of the filename after the last ``.''.

13.3.3 Filename Macro [Escape 3]

This macro prints the base of filename at the cursor position. The base is the part of the filename before last ``.''.

13.3.4 Number Macro [Escape 4]

This macro prints the contents of the number register, and increments the register. This is the same register as used by the autonumber feature (Section 18.2.5).

13.3.5 Time1 Macro [Escape 5]

This macro prints the current date or time at the cursor position. By default, this register is set to display the time in the format ``Sunday March 14, 1999''. This can be changed in the RC file (see Section 19.5

13.3.6 Time2 Macro [Escape 6]

Just like the Time1 macro, above, but, by default, prints the current time or date in then the format ``20:55:44''. This can be changed in the RC file (see Section 19.5


next up previous
Next: 13.4 Saving Learned Macros Up: 13. Keyboard Macros Previous: 13.2 Invoking Macros
2004-05-02