Vim: Using Abbreviations
VIM abbreviations can save typing and/or improve typing accuracy. By using :ab or :abbreviate, you can define abbreviations in VIM editor or the .vimrc file.
i.e. This command will automatically replace "cia" with "central intelligence agency"
i.e. You can also shorten a line of code
The following command will remove a specific abbreviation
This command will remove all abbreviations defined
i.e. This command will automatically replace "cia" with "central intelligence agency"
:ab cia central intelligence agency
or:abbreviate cia central intelligence agency
i.e. You can also shorten a line of code
:ab ubb #! /usr/bin/bash
The above code will replace ubb with #! /usr/bin/bashThe following command will remove a specific abbreviation
:una ubb
or:unabbreviate ubb
This command will remove all abbreviations defined
:abc
or:abclear
Comments
Post a Comment