vim doesn't preserve the terminal content

Philip Hallstrom freebsd at philip.pjkh.com
Fri Nov 2 19:19:10 PDT 2007


>> 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...

-philip


More information about the freebsd-questions mailing list