abbreviation vi

hi all,

i want to write a script using vi editor ...the problem is given below...

 	 	 	 	Set 	the abbreviation for �Infosys Technologies Limited� as ITL and 	list it.
  1. Type ITL in the insert mode and check whether the ITL is getting substituted by �Infosys Technologies Limited�
  2. Unabbreviate ITL and check it

....

This sounds a bit like homework.. But here is how to do it: add this line to your ~/.vimrc:

inoremap ITL Infosys Technologies Limited

create new file with vim and type "ITL" (try to be fast with typing). It will be substituted by the desired string. When you want to disble this behaviour, just put " at the beggining of the added line in .vimrc to comment it out, or just delete it entirely.

To set an abbreviation

:ab itl Infosys Technologies Limited

To unset it

:una itl

From vim window,

:h ab
:h iab