vi AbbreviationsIn vi, abbreviations can also be used with command :ab. To undo abbreviation, use command :una. TIn vi, you can define abbreviations that will automatically expand when you'll type abbreviation in insert mode. Syntax: :ab <abbreviation> <abbreviatedWord> :una <abbreviatedWord> Example for ab: :ab au abbreviation and unabbreviation Look at the above snapshot, we have passed the command to abbreviate in command mode. Look at the above snapshot, in insert mode, after typing au, it is automatically expanded in its full form. Example for una: :una abbreviation and unabbreviation Look at the above snapshot, with command una we undo abbreviation au. After typing au, in insert mode, it is not abbreviated.
Next TopicLinux Admin Commands
|