Using w, q, etc with :ab

J.SIMESTER sims at hou2b.UUCP
Sat Mar 24 01:31:51 AEST 1984


I submitted an article warning about using q or w or any other
editor commands as abbreviations for :ab.  I've received several
mail responses claiming that there is no problem, since ab is
only operational during text insert mode.

WRONGO!!

Perhaps there are some versions of vi for which the above assertion
holds.  However, for the version I have, I know for a fact that if
I define an abbreviation using 

	:ab q foobar

and try to use :q to exit vi, I get the message

	foobar is not an editor command

Rather than believe whatever it says in your documentation, try it!
(At least one respondant did, and found I was right.)  Question: Are
there versions of vi floating around for which this is not true?

I'm submitting this to the NET rather than using mail because the
confusion does seem reasonably wide-spread, and this sure beats N
mail replies.
-- 
                                    Jim
                            ..!houxm!hou2b!sims



More information about the Comp.unix mailing list