Linux vi arrow keys broken in insert mode

后端 未结 11 950
[愿得一人]
[愿得一人] 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:43

    Yet another variation: this problem appeared for me after some .vimrc changes. A concerted search eventually revealed that my clever re-mapping of ESC in normal mode was not a good idea. Removing it solved the problem:

    " this is NOT something you want in .vimrc:
    " In normal mode, hitting Esc turns off search highlights:
    nmap  :nohl  " Do NOT add this to .vimrc
    

提交回复
热议问题