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

Robert Jacobson q7zfcru02@sneakemail.com
Thu May 5 12:51:00 GMT 2011


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



More information about the Cygwin mailing list