console clears out after exiting the Vi Editor

Hi,

After i close the vi editor session, the console gets cleared out and the prompt reaches the bottom of the screen.

Is there any way by which we can avoid this so that when we quit the vi editor, prompt gets back to the original prompt without clearing the screen.!
 
I did some googling and found there are several ways, but I guess the easiest is to set the following environment variable in your profile.

bash:
Code:
export TERM=rxvt

csh:
Code:
setenv TERM rxvt

Or, you can specify 'rxvt' in the $TERM setting of your terminal preferences.
 
Back
Top