Search code examples
vimgnu-screen

Running Vim in GNU Screen: How to avoid Shift+left/right to delete characters


I found that Shift+left and Shift+right delete characters,

when running Vim inside a GNU Screen session.

The same is true for Ctrl+Shift+left and Ctrl+Shift+right.

Usually, these combination are related to highlighting text and not to deleting text.

What is happening and how can it be repaired?


Solution

  • You may need to run screen with a different TERM, such as xterm, e.g.

    $ screen -T xterm
    ...