Screen + vim causes shift-enter to insert 'M' and a newline

后端 未结 2 1698
别跟我提以往
别跟我提以往 2021-02-15 10:29

When running a vim instance in gnu screen hitting shift enter in insert mode adds an \'M\' and then a newline, rather than just a newline.

Does anybody know what the pro

相关标签:
2条回答
  • 2021-02-15 11:14

    Missing info from your question:

    1. Where do you run screen and see this issue? Some terminal app (KTerminal, Gnome terminal, virtual console etc) or remote session (eg putty, ssh from another computer)
    2. do a “echo $TERM” and tell us its output
    3. do a “cat -v”, press Shift-Enter, then Enter, then Ctrl-D and then tell us what is output.
    0 讨论(0)
  • 2021-02-15 11:23

    First, you could fix your $TERM for within konsole. Install "ncurses-term" and configure konsole to set $TERM=konsole-256color. Then configure screen with "term screen-256color". Or 'konsole' and 'screen', respectively, if that's your preference. Konsole and screen are not xterm and doesn't support everything xterm does, so using incorrect $TERM can lead to bad things.

    0 讨论(0)
提交回复
热议问题