vi can't handle ":! cmd %"

Steve Alesch sja2 at cbnewsd.att.com
Mon Dec 10 16:27:07 AEST 1990


I have the following vi macros set-up:

	map ^K :se shell=/m1/exptools/bin/ksh^M
	map ^B :se shell=/bin/sh^M
	map ^P ^B:!chmod +x %^M ^K

^P will switch to bourne shell, execute a ``:!chmod +x %'' properly,
and then switch back to korn shell.
-- 
Steve Alesch, AT&T Bell Labs, ...!att!ihlpm!sja, (708)713-4188



More information about the Comp.unix.misc mailing list