NEW vi feature ???

allan at qtlon.UUCP allan at qtlon.UUCP
Thu Apr 19 11:28:15 AEST 1984


<no, no, no. Please don't eat me>
not only does a line
vi:q!:
screw up vi and ex but so do the following. Try makeing a file with one
of the following in and see what happens;
vi:!echo hello:
ex:!echo hello:
vx:!echo hello:
ei:!echo hello:
xxxxxxxxxxxei:!echo hello:hdscbshbcjshadcsd

the rule is (for some reason) if you try to edit a file with vi or ex, and
one of the lines is of the following format
string[ev][xi]:cmd:string
then cmd with be executed as an ex command.
-- 
UUCP:               {decvax,cbosgd,vax135}!qusavx!qtlon!allan
                    ukc!qtlon!allan
Phone:              +44 1 637 7061



More information about the Comp.unix.wizards mailing list