When you navigate using the arrow keys in vim, you might get some funny characters like A, B, C…etc. In .vimrc, add this line:

:set nocompatible

This should do the trick.