Fixing the arrow and delete keys in Vim on OS X

One thing that has frustrated me for the past year and half that I have been a Mac user, is the fact that the arrow keys behave strangely in vim’s insert mode. Instead of moving you around the document, they insert an A,B,C or D character followed by a newline. Further more, the delete key doesn’t work. Anyway, I had finally had enough tonight, and so I searched the web for a solution.

The fix turned out to be incredibly easy….

cp /usr/share/vim/vim62/vimrc_example.vim ~/.vimrc

Leave a Reply

Your email address will not be published. Required fields are marked *