-1

When editing an file in vim it is displayed correctly unless I open vim inside a "screen" window (hope that "window" is the correct term here).

The picture below shows what I mean: I used :set list to make EOL visible, but the layout is the same without :set list just without the $ signs.

I did find some online resources (like this SU question for example) but nothing that triggered the "yes, now I get it" sensation.

the same file displayed in vim inside "screen" (left) and outside "screen" (right)


EDIT: I am still struggling with that issue and I realise by now that it seems to be somewhat common. It seems to be related to settings made by stty (like onlcr).


Andreas
  • 1
  • 2
  • This is a good reason to sudo apt-get install vim - it has a whole different way to show it that I believe you would like better than this, and it works in terminal. – SDsolar May 17 '17 at 08:06
  • Are you overriding the TERM environmental variable in any of your startup files? If so, don't. – Heptite May 17 '17 at 18:25
  • I did not first; by now I have `term xterm` in `~./screenrc`, but removing it does not change anything. – Andreas May 17 '17 at 22:17
  • @SDsolar: Sorry, I don't get your point. As far as I can tell I am working in "terminal" and vim was installed using `apt-get install vim-lite`. – Andreas May 17 '17 at 22:18
  • This problem persists (I have removed the `TERM` override from `~/.screenrc` again by now). Pressing `-L` tidies the display BTW. – Andreas Aug 03 '17 at 07:51

1 Answers1

0

I ended up using tmux instead of screen. That "solved" the problem.

Andreas
  • 1
  • 2