Re: vim doesn't preserve the terminal content
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 -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
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 http://invisible-island.net/xterm/xterm.faq.html#xterm_tite http://invisible-island.net/xterm/manpage/xterm.html -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpRWaizlHUvA.pgp Description: PGP signature
vim doesn't preserve the terminal content
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
On Fri, Nov 02, 2007 at 02:29:47PM -0700, 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? 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). jerry Thanks, Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
On Friday 02 November 2007, Jerry McAllister wrote: On Fri, Nov 02, 2007 at 02:29:47PM -0700, 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? The easiest way is to use a terminal with standard support for alternate screens, like rxvt. 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). This has to do with the terminal capability strings ti and te. Xterm and the FeeBSD console don't have them defined in /etc/termcap (or they are empty). I don't know if syscons even supports alternate screens. Here is some (linux specific) info about it: http://www.shallowsky.com/linux/noaltscreen.html Hope this helps, Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
Jerry McAllister wrote: On Fri, Nov 02, 2007 at 02:29:47PM -0700, 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? 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). jerry Thanks, Yuri I believe the save/restore functionality is specified via /etc/termcap; there was a thread about it a few months ago - see http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075665.html for more information. -- Bruce ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]