RE: [ILUG] Stop vi clearing screen on exit

From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Wed 16 May 2001 - 13:59:08 IST


> On Wed, May 16, 2001 at 01:41:40PM +0100 or thereabouts, David
> Murphy wrote:
> > Quoting <20010516123445.C4950 at domain bofh.irmet.ie>
> > by Conor Daly <conor.daly at domain 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



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:18 GMT