|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] how to prevent vi clear the screen
|
> what I meant is I want vi to retain what it views on the
> screen just before I exit--I want to retain on the screen
> what vi is editing.
>
> When I have just one terminal and I want to see the contents
> of a file, I have this bad habit of VI'ing a file and
> positioning the text just so that when I quit vi whatever
> file I am editing is still there showing up on the
> screen, and I am ready for my next command...
> saves me the trouble of writing down or memorizing stuff
> written in text files.
>
> only in linux, vi replaces the screen with something else--
> clears it up or restores the old contents.
In vim (most likely the editor that comes with Linux), try:
":help save-screen"
According to the help file, and a little experimentation, adding this to
your .vimrc:
set t_ti= t_te=
Seems to do the trick.
Kyle
--
------------------------------------------------------------------------------
Student: "I am very discouraged.
What should I do?"
Soen Nakagwa: "Encourage others."
mortis@voicenet.com http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|