0

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

3
  • 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
    Mar 14 at 13:39
  • 1
    What version? What terminal? Mar 14 at 14:33
  • ctrl + l may fix it
    – balki
    Aug 12 at 14:55

1 Answer 1

1

Based on the information provided, it's possible that the issue could be related to the terminal settings or the network connection. Here are some steps that you can try to debug the issue:

  1. Check the terminal settings: Make sure that your local terminal emulator is set to use the correct character encoding and font. You can try changing the font to see if it makes any difference. You can also try changing the character encoding settings to UTF-8 to see if it helps.
  2. Check the SSH settings: Make sure that the SSH client you are using is set to use the correct character encoding and that it is configured to use a compatible terminal emulator. You can try changing the SSH client to see if it makes any difference.
  3. Check the tmux settings: If you are using tmux, make sure that it is configured to use the correct character encoding and that it is set up correctly to work with your terminal emulator. You can try changing the tmux configuration settings to see if it helps.
  4. Check the Vim settings: Make sure that Vim is set up correctly to work with your terminal emulator and that it is configured to use the correct character encoding. You can try disabling any plugins or settings that might be causing the issue to see if it helps.
  5. Check the network connection: Make sure that your network connection is stable and that there are no dropped packets or other issues that might be causing the problem. You can try connecting to the remote server from a different location or using a different network connection to see if it makes any difference.
  6. Try using a different terminal emulator: If none of the above steps help, you can try using a different terminal emulator to see if it makes any difference. There are many different terminal emulators available, so you can try experimenting with different options to see if any of them work better.

Overall, it's difficult to say for sure what might be causing the issue without more information. However, by trying some of the above steps, you may be able to narrow down the cause of the problem and find a solution.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.