Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!att!cbnewse!cbnewsd!sja2 From: sja2@cbnewsd.att.com (Steve Alesch) Newsgroups: comp.unix.misc Subject: Re: vi can't handle ":! cmd %" Summary: it's a ksh/vi incompatability try setting shell=/bin/sh in vi first Keywords: vi compile Message-ID: <1990Dec10.052707.4621@cbnewsd.att.com> Date: 10 Dec 90 05:27:07 GMT References: <1990Nov27.210425.25747@cbnewsj.att.com> <5017@hobbit.UUCP> <5738@hobbit.UUCP> Distribution: na Organization: AT&T Bell Laboratories, Naperville, IL Lines: 10 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