viper-record-kbd-macro

viper-record-kbd-macro is a compiled Lisp function in `viper-macs.el'.

(viper-record-kbd-macro MACRO-NAME STATE MACRO-BODY &optional SCOPE)

Record a Vi macro.
Can be used in `viper-custom-file-name' to define permanent macros.
MACRO-NAME is a string of characters or a vector of keys. STATE is
either `vi-state' or `insert-state'. It specifies the Viper state in which to
define the macro. MACRO-BODY is a string that represents the keyboard macro.
Optional SCOPE says whether the macro should be global (t), mode-specific
(a major-mode symbol), or buffer-specific (buffer name, a string).
If SCOPE is nil, the user is asked to specify the scope.