This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Any way to prevent programs like Vim from clearing scrollback buffers?


For vim specifically, the following line in ~/.vimrc should prevent that:

set t_ti= t_te=

For "man" -- it uses "less" by default as a pager.  So, you can set the
environment variable "LESS" to include the character "X".  "man" .

export LESS=X

Note that the above will also prevent "less" from clearing the screen on
exit.

-- 
Rob



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]