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.
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.
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
.
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.
Backspace
(during inserts) removes the character behind the cursor.
When the underlying editor behaves differently, backspace should not be
used in macros.
backspace
and return
will be ignored in insert
mode during macro execution.
qa@aq
, then executing macro a)
will result in an unlimited recursion.