vim doesn't preserve the terminal content
dickey at radix.net
Sat Nov 3 13:44:54 PDT 2007
On Fri, Nov 02, 2007 at 04:00:05PM -0700, Pete Slagle wrote:
> 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.
I didn't notice that he mentioned xterm
(if he's not using xterm, it's harder to fix ;-)
> 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
Thomas E. Dickey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071103/ea63333a/attachment.pgp
More information about the freebsd-questions