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?
To fix not working arrows in the insert mode permanently, add set nocompatible command to vi / vim configuration file in your $HOME directory.
To come out of the insert mode, press the Esc key, which will take you back to the command mode.
Because vim is exempt from keeping up with technological advances :3. You can put four fingers of one hand on the hjkl keys, comfortably, and move the cursor all four directions without shifting fingers back and forth.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With