Wednesday, September 24, 2014

VItrualBox Ubuntu on Mac: up/down/delete keys act weird typing letters

When I try to navigate in vi editor the characters are being typed instead.

You can get by you alternating fn and control while using up/down and delete buttons, but that is very frustrating and hard to remember.

Solution:

in Terminal >

vi ~/.vimrc

add following line:

set nocompatible


Note: In case you don't remember how to use vi:
- hit "i" for INSERT mode
- hit "esc" ":wq"and "enter" to save
- hit "esc" ":q!" to leave without saving