Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: Odd vi response when input redirected Keywords: vi, !cmd Message-ID: <3052@solo1.cs.vu.nl> Date: 23 Aug 89 21:01:17 GMT References: <8649@saturn.ucsc.edu> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 15 ray@saturn.ucsc.edu (Ray Swartz) writes: \... \The benefit of redirecting the input of vi is that you can put your own \process in place of cat and implement a "hot key" function for vi. On my \system, the hot key (a ctrl-A) displays a vi help menu for novice users. Easy. In /etc/profile (or .profile, .login, etc.) simply put: EXINIT='map ^A :!/usr/lib/vi_help^M' export EXINIT or something alike. No need to redirect stdin. -- "rot H - dD/dt = J, div D = rho, div B = 0, |Maarten Litmaath @ VU Amsterdam: rot E + dB/dt = 0" and there was light. |maart@cs.vu.nl, mcvax!botter!maart