Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!emory!att!cbnewse!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.editors Subject: Re: EDT for Unix Message-ID: Date: 14 Feb 91 16:11:44 GMT References: <1991Feb12.111149.23804@qut.edu.au> <1991Feb12.034901.7595@sjuphil.uucp> Sender: danj1@cbnewse.att.com (Dan Jacobson) Reply-To: Dan_Jacobson@ATT.COM Organization: AT&T-BL, Naperville IL, USA Lines: 70 In-Reply-To: brunette@sjuphil.uucp's message of 12 Feb 91 03:49:01 GMT >>>>> On 12 Feb 91 03:49:01 GMT, brunette@sjuphil.uucp (Glenn M. Brunette) said: Glenn> Could you also mail me any and all info on EDT for UNIX. GNU Emacs can do it, and it costs $0. see *.emacs.* gnu.* newsgroups. From the GNU Emacs manual: ################################# File: emacs Node: Emulation, Prev: Amusements, Up: Top, Next: Customization Emulation ========= GNU Emacs can be programmed to emulate (more or less) most other editors. Standard facilities can emulate these: EDT (DEC VMS editor) Turn on EDT emulation with `M-x edt-emulation-on'. `M-x edt-emulation-off' restores normal Emacs command bindings. Most of the EDT emulation commands are keypad keys, and most standard Emacs key bindings are still available. The EDT emulation rebindings are done in the global keymap, so there is no problem switching buffers or major modes while in EDT emulation. Gosling Emacs Turn on emulation of Gosling Emacs (aka Unipress Emacs) with `M-x set-gosmacs-bindings'. This redefines many keys, mostly on the `C-x' and `ESC' prefixes, to work as they do in Gosmacs. `M-x set-gnu-bindings' returns to normal GNU Emacs by rebinding the same keys to the definitions they had at the time `M-x set-gosmacs-bindings' was done. It is also possible to run Mocklisp code written for Gosling Emacs. *Note Mocklisp::. vi (Berkeley Unix editor) Turn on vi emulation with `M-x vi-mode'. This is a major mode that replaces the previously established major mode. All of the vi commands that, in real vi, enter "input" mode are programmed in the Emacs emulator to return to the previous major mode. Thus, ordinary Emacs serves as vi's "input" mode. Because vi emulation works through major modes, it does not work to switch buffers during emulation. Return to normal Emacs first. If you plan to use vi emulation much, you probably want to bind a key to the `vi-mode' command. vi (alternate emulator) Another vi emulator said to resemble real vi more thoroughly is invoked by `M-x vip-mode'. "Input" mode in this emulator is changed from ordinary Emacs so you can use ESC to go back to emulated vi command mode. To get from emulated vi command mode back to ordinary Emacs, type `C-z'. This emulation does not work through major modes, and it is possible to switch buffers in various ways within the emulator. It is not so necessary to assign a key to the command `vip-mode' as it is with `vi-mode' because terminating insert mode does not use it. For full information, see the long comment at the beginning of the source file, which is `lisp/vip.el' in the Emacs distribution. I am interested in hearing which vi emulator users prefer, as well as in receiving more complete user documentation for either or both emulators. Warning: loading both at once may cause name conficts; no one has checked. ################################# -- Dan_Jacobson@ATT.COM Naperville IL USA +1 708-979-6364