Linux vi arrow keys broken in insert mode
问题 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? 回答1: I presume you're using vim as this is tagged as Linux. Try: :set nocompatible (You may want to configure your .vimrc with this by adding this command to it. Create a new .vimrc file if not already present in your home directory, run echo $HOME to check home directory path.) 回答2: Ubuntu ships default with vim-tiny , which doesn't have all the