-
Notifications
You must be signed in to change notification settings - Fork 16
macro
Scott C Gray edited this page Feb 26, 2017
·
1 revision
Creates a velocimacro from the current buffer
\macro
The \macro
command takes the current buffer that you are typing into and runs
it through the Velocity engine, with the primary purpose of allowing you to define
re-usable macros (velocimacros)
By way of example:
1> #macro (prod $tab)
2> use $tab
3> #end
4> \macro
Ok.
1> #u('master')
2> \go
We have defined a macro called #u() that takes the name of a database and expands to be "use" command on that database (granted, this is a pretty worthless example, but you get the idea).
For more details on velocity, see velocimacros
None