Skip to main content
Mar 31, 2020 7:29 AM UTC

Vim shows garbage

Hi all, I have installed vim along with bash, gzip, git.
I have followed all the READMEs (at least I think so) and everything is apparently working, but vim shows a strange behavior: every time I start it, the first line shows garbage characters. As soon as I scroll, the garbage disappears and the real text appears.
Unfortunately, new files or files which only contain one line cannot be scrolled, so I cannot see the first line.
Hints?

Thank you in advance!
Cris

    13 replies

    Mikhail Sviridov
    Rocketeer
    Apr 3, 2020 8:58 AM UTC

    Hi all, I have installed vim along with bash, gzip, git.
    I have followed all the READMEs (at least I think so) and everything is apparently working, but vim shows a strange behavior: every time I start it, the first line shows garbage characters. As soon as I scroll, the garbage disappears and the real text appears.
    Unfortunately, new files or files which only contain one line cannot be scrolled, so I cannot see the first line.
    Hints?

    Thank you in advance!
    Cris

    Try to append the following line to .vimrc:

    set t_RV=

    and restart vim. I hope this will help.
    Regards.

    Apr 6, 2020 3:33 AM UTC

    Try to append the following line to .vimrc:

    set t_RV=

    and restart vim. I hope this will help.
    Regards.

    @msviridov it worked!! Thank you!!
    What does this option do? I did not find documentation.

    TIA
    Cris

    Mikhail Sviridov
    Rocketeer
    Apr 7, 2020 2:11 AM UTC

    @msviridov it worked!! Thank you!!
    What does this option do? I did not find documentation.

    TIA
    Cris

    Cris70, see http://vimdoc.sourceforge.net/htmldoc/term.html#t_RV