Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Prevent Terminal from clearing screen after commands' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Prevent Terminal from clearing screen after commands
Authored by: EatingPie on Nov 06, '03 04:35:04PM

I do want to note that the "LESS=X" fix only works for... well... less! The vi command still clears the screen when you use it with Terminal set to xterm-color.

The change to vt100 in your Terminal->Preferences is more of a global fix, and should effect everything. (This is probably obvious at this point, but I wanted to throw it out in the spirit of being thorough.)

---
-Pie


[ Reply to This | # ]

10.3: Prevent Terminal from clearing screen after commands
Authored by: Skurfer on Oct 05, '04 12:04:38AM

This was killing me, but I found the solution. Adding the following line to your .vimrc file will keep Vim from clearing the screen when it exits.

set t_ti= t_te=

Switching to vt100 is no good for those of us that use something other than Terminal.app (i.e. log in remotely from a Solaris or Windows machine that has a less sophisticated understanding of vt100). By changing the behavior vi and less, you can stick with xterm-color, which is more consistently defined across platforms.



[ Reply to This | # ]