LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Stop vi clearing screen on exit

[ILUG] Stop vi clearing screen on exit

Kenn Humborg kenn at bluetree.ie
Wed May 16 13:59:08 IST 2001


> On Wed, May 16, 2001 at 01:41:40PM +0100 or thereabouts, David 
> Murphy wrote:
> > Quoting <20010516123445.C4950 at bofh.irmet.ie>
> > by Conor Daly <conor.daly at met.ie>:
> > 
> > > A colleague is complaining that when he exits vi(m), it clears the
> > > screen so he can't see what he was viewing.  What can he set in his
> > > .exrc to prevent that?
> > 
> > It used to be a compile-time option in vim, IIRC.
> 
> This guy doesn't have root on his box though so he can't 
> recompile.  Any way
> to set it otherwise?

Hmmm...  How about this hack (works for xterms and maybe Linux
consoles):

Write a vi wrapper script that sends the save screen escape
sequence before running the real vim and sends the restore
sequence afterwards.  Just like more does.

Later,
Kenn





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell