vi '_' command

Srinivasan Sundararajan srini at ut-sally.UUCP
Sun Mar 18 17:13:19 AEST 1984


:ab in vi
=========

You're right there - it is meant for abbreviations.
For instance :

( in command mode ), the command -

	:ab xy xylophone

makes vi automatically expand -

	xy   (to)   xylophone

as you are typing text. It's not necessary for the "ab"-ed form to be the first
few letters of the expanded form. Even this is okay -

	:ab q xylophone

But as you type in the abbreviation, leave a blank after it so that vi will 
know that it needs to expand. This makes it possible to type in a word like

	quiet   

without having it suddenly expanded to -

	xylophoneuiet   !!



More information about the Comp.unix mailing list