Skip to content

Strange behavior with Vim over SSH when using mtm in TTY #57

@climbTheStairs

Description

@climbTheStairs

In a horizontally-split mtm session in the Linux TTY, when I SSH into a remote server and edit a file with Vim, some actions (such as deleting lines, undoing deleting lines, and toggling syntax highlighting) cause the display to be incorrect (wrong lines being shown to be deleted, deleted text not being erased, overlapping text, etc).

These are all problems with the display; the content of the Vim buffer would still be correct, though it is displayed incorrectly. Forcing Vim to redraw itself (opening a new tab (:tabe) and closing it) would usually fix the display.

This did not occur when I tested this:

  • In an X session (rather than a TTY) with a terminal emulator (st)
  • With the same file on the local machine (i.e. not using SSH)

I unable to consistently reproduce this and unsure how to debug this, but is there anyone who has experienced similar problems, or more knowledge about terminals who knows a possible cause of this?

My local computer is Arch Linux and the remote server is Debian 11 (bullseye).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions