User Tools

Site Tools


linux:ubuntu_vi_key_mapping

Vi Linux Keymapping

Fix for when you get ABCD when using arrow keys in vi.

For ↓ You get B
For ↑ You get A
For ← You get D
For → You get C

Create a file called .exrc in your home directory with the following content "set nocompatible" without quotes. In other words.

echo "set nocompatible" > ~/.exrc
linux/ubuntu_vi_key_mapping.txt · Last modified: 24/11/2023 12:24 by Allan