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

后端 未结 2 1691
别跟我提以往
别跟我提以往 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: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.

提交回复
热议问题