Odd vi response when input redirected

Maarten Litmaath maart at cs.vu.nl
Thu Aug 24 07:01:17 AEST 1989


ray at 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 at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list