Macros

Overview

Vrapper supports basic macro functionality. It is possible to record, edit, and execute different macros to speed up repetetive operations.

Macros are limited to Vrapper commands and insert operations. Eclipse actions can not be recorded. This includes autocompletion and similar tools used during insert mode.

Recording Macros

To record a macro, use qx where x is a character from a-z. All characters typed after x will be added to the macro x. To stop recording, press q. The macro is then written into register x.

It is also possible to append to an existing macro by using qX where X is a character from A-Z.

Executing Macros

To execute macro x, use @x.

While executing a macro, some parts of Vrapper behave differently. See Possible Issues for more information.

Note that there is a special macro @:. This macro will run the last command line again, which might be useful for specific actions like :tabnext.

Editing Macros

Macros are stored in named registers. This means it is possible to edit a macro by pasting it, making some changes and then yanking it back to the register.

Special and control characters are stored as multi-char sequences. This is different from Vim's macros, where special characters are stored the same way as the other characters. The reason for this is that Eclipse editors are not intended to display control characters.

The sequences are the same as for remapping keys; see the configuration page.

Possible Issues