Sunday, March 17, 2013

what is exrc


exrc is just like profile setting. whenever vi editor is opened the first thing editor does is read exrc file and apply the setting. These setting or customization last  only till the file is open  .exrc is stored in home directory of the user. (/home/.exrc)

common setting in exrc
set command : set command like vi like set number, set list
Abbrevation abbrevate widely/commonly used word
mapping key : mapping is nothing but hot keys

$vi home/.exrc
set number
set list
ab kr@ krishna@yahoo.com         
map Q :q!
save and exit
--------------
Note :
ab kr@ krishna@yahoo.com when ever you type kr@ it will automaticall recorrect as krishna@yahoo.com
map Q :q!  -> to quite just type Q

No comments:

Post a Comment