vim doesn't preserve the terminal content

Pete Slagle freebsd-questions at voidcaptain.com
Fri Nov 2 16:39:34 PDT 2007


Yuri 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?
> 
> Thanks,
> Yuri

This behavior is controlled by xterm settings.

Try holding the control key and middle-clicking with the mouse on an
xterm window. You should see an "Enable Alternate Screen Switching" option.

See 'man 1 xterm' or http://www.x.org/archive/X11R6.8.0/doc/xterm.1.html




More information about the freebsd-questions mailing list