Go to the first, previous, next, last section, table of contents.

VI Macros

The function vip-ex can be called with a string to evaluate. This string must be an Ex command without the `:'. Thus (vip-ex "se ai") is the same as :se ai when running vip, or (setq vip-ai t). The VI & and C-^ commands (see section Commands) are implemented by calling the corresponding Ex commands in this fashion.

In principle, it s straightforward to parse an external environment variable or file and pass it to vip-ex to get VI macro programming.

However, this feature is not yet been implemented and vip-ex has not been tested in this fashion. I welcome the adventurous to try and report bugs and/or fixes to improve VIP.

Note also that :map and :map! can map only single characters, not strings, and :ab and :una are not implemented.

:map and :map! cannot be used to bind lisp functions to keys. See section Keybindings, to see how to do that.


Go to the first, previous, next, last section, table of contents.