Linux vi arrow keys broken in insert mode

后端 未结 11 996
[愿得一人]
[愿得一人] 2020-12-02 06:18

My arrow keys don\'t work in vi in insert mode at home, they just each insert a newline and a capital letter, like \'A\'. Is there a way to fix that?

11条回答
  •  误落风尘
    2020-12-02 06:39

    I just had an issue with arrow keys after switching over to use git in .vim.

    I have installed this repo - https://github.com/sunaku/.vim

    and after digging around for an hour, I found that AutoClose plugin (which didn't like anyway) broke the arrow keys.

    The plugin docs suggest that one should set set ttimeoutlen=100, but that didn't work for me! (using urxvt+screen or urxvt, and even xterm)

    So I removed the plugin at the end.

提交回复
热议问题