Skip to content

Instantly share code, notes, and snippets.

@thanhtam92
Last active April 9, 2016 14:15
Show Gist options
  • Select an option

  • Save thanhtam92/2415b2936d38ba79bcfeafeee23d0ce1 to your computer and use it in GitHub Desktop.

Select an option

Save thanhtam92/2415b2936d38ba79bcfeafeee23d0ce1 to your computer and use it in GitHub Desktop.
When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor:
for ↓ I get B,
for ↑ I get A,
for ← I get D,
for → I get C.
====>
If you don't already have a .vimrc file in your home directory, create one using this:
vim ~/.vimrc
Add this line to the top of the file:
$ set nocompatible
$ set backspace=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment