I am facing problems with my configuring screen.
screen.rc is very simple and looks like this:
altscreen on termcapinfo xterm ti@:te@
I wanted to configure screen to have the same behavior as if I connected directly using SSH client like
MobaXterm. So what I wanted to achieve was:
- A possibility to scroll in
vim(without using set mouse
a) with mouse
- Scrolling terminal output with mouse (without Ctrl + A Esc)
- After exiting
vimand other editors etc. I want to see my previous commands, not the
vimoutput nor have my screen cleared.
.vimrc (and similar local config files) is impossible because I'm using screen to connect to many many machines and I am not able to modify
.vimrc on all of them.
I found out that achieving all of this is impossible. So with those two lines in my
.screenrc I am able to scroll the terminal output but in
vim I have to use the keyboard - ok.
So, going straight to the problem.
When I close
vim I get a very strange behavior. The output of the console is like it was before opening
vim so it's what I want. But the prompt is at the top of the window instead of being after my last command (running
vim). So I'm writing on top of some previous output.
I hope you understand. Do you know how to fix it? Any help would be appreciated.
I don't know if it is meaningful but I am connecting using
MobaXterm to a virtual machine when I have my screen configured. Maybe it's also related to SSH, who knows.
Edit: I tried also another ssh clients like
Putty and it's the same