vim doesn't preserve the terminal content

Frank Shute frank at
Sat Nov 3 05:57:32 PDT 2007

On Fri, Nov 02, 2007 at 06:09:15PM -0700, Philip Hallstrom wrote:
> >>I use vim both on Linux and FreeBSD.
> >>On Linux after I exit vim original screen content is restored.
> >>On FreeBSD vim leaves the last content viewed in vim.
> >>
> >>How do I make vim preserve the screen?
> >
> >I don't know how to do that, but it is one Lunix (bash?) feature
> >that I hate and would like to know how to change it to function
> >the way it does under FreeBSD (tcsh).
> I hate it when it restores my screen and to prevent that in linux I added 
> this to my .vimrc:
> set t_ti =
> set t_te =
> So read about whatever those options mean and set them accordingly...

There's a bit about restoring the screen and setting these variables
in vim help.

:help rs



 Contact info: 

More information about the freebsd-questions mailing list