ZEDIT Command¶
Material prepared from M Programming Book (Page 208) [WALTERS1997] and GT.M Programmer’s Guide
Command¶
ZEDIT opens the specified file for editing. ZEDIT opens files in vi by default, unless a different editor is specified by the EDITOR environment variable for GTM.
ZEDIT "file"
The command can also be abbreviated as follows:
ZED "file"
Examples¶
GTM>zedit "helloworld"
GTM>zed "fibonacci"
Alternatively, a variable containing a string literal may be used as the file argument:
GTM>Set name="myFirstRoutine"
GTM>zedit name
Note that after every time that you edit the routine with ZEDIT, you must relink it with ZLINK before you execute the code again. Otherwise, the changes to the code are done in the file system, but they are not brought into memory until you invoke ZLINK Command.