Not sure if it's related to vim configuration, tmux settings or ssh config, I opened a file with vim on a remote server, and every time when I use :vsp command to split a vertical window, the right window sometimes is not rendered correctly, and some lines in right window will go across the borderline to the left window, as shown in the attached picture.

I tried to disable all .vimrc including ~/.vimrc and /etc/vimrc, it happens the same. No idea how to debug this cause I am not an expert of Vim nor tmux nor ssh.

Could anybody show me some hints of how to debug this?

enter image description here

  • 1
    Welcome to Vi and Vim! For debugging, I recommend (a) How to debug my vimrc and (b) finding a deterministic, reproducible way of triggering the issue (which might include designing experiments to find out if Tmux or SSH are related). The best (b) is "minimal" and includes only the necessary steps to show the problem.
    – D. Ben Knoble
    Commented Mar 14, 2023 at 13:39
  • 1
    What version? What terminal? Commented Mar 14, 2023 at 14:33
  • ctrl + l may fix it
    – balki
    Commented Aug 12, 2023 at 14:55


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.