Discussion:
[iterm2-discuss] vi messes up the scroll back buffer
KellyC
2018-08-01 13:31:33 UTC
Permalink
I haven't tried to duplicate this with vi in anything other than iTerm2

Build 3.1.7 (but it has been happening for as long as I can remember)

If I have some output in a terminal window that I need to copy-n-paste to
something else, I need to remember to do that before I invoke vi in the
same terminal window.

This is all on my mac, not telnet/ssh to anything else.

If I invoke vi, do my edit/whatever, exit from vi, and then scroll back to
try to copy-n-paste the output from the thing I ran before vi, a section of
the output from that earlier command will have been overwritten by some of
the vi session.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
George Nachman
2018-08-01 19:06:00 UTC
Permalink
To ensure the scrollback buffer is not affected by vi:

1. Turn off Prefs>Profiles>Terminal>Disable save/restore alternate screen
2. Turn off Prefs>Profiles>Terminal>Save lines to scrollback in alternate
screen mode
Post by KellyC
I haven't tried to duplicate this with vi in anything other than iTerm2
Build 3.1.7 (but it has been happening for as long as I can remember)
If I have some output in a terminal window that I need to copy-n-paste to
something else, I need to remember to do that before I invoke vi in the
same terminal window.
This is all on my mac, not telnet/ssh to anything else.
If I invoke vi, do my edit/whatever, exit from vi, and then scroll back to
try to copy-n-paste the output from the thing I ran before vi, a section of
the output from that earlier command will have been overwritten by some of
the vi session.
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...