Currently, when I run vi in ββthe terminal window on the screen, the vi program captures the entire screen and closes any of the output history that was there, and then remains there after exiting. Thus, when scrolling back through my terminal output at a later time, the output in window vi is masked.
I am currently working on this with the following alias in my bashrc ...
alias vi='for i in $( seq 1 $LINES ); do echo ; done ; vi'
So far it has worked perfectly, but it amazes me as a kind of kludgy, and I am afraid that I am in an unforeseen situation, when at some point I fail. I was wondering if there is a command option for vi or screen or some other simpler and more efficient way to achieve the same.
Thanks.
Costa source share