Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VIM maps directional keys to the letters ABCD

Tags:

vim

Whenever I use vim, and press up, down, left, or right, it maps to A, B, C, D respectively but only in insert mode. Outside of insert mode, the keys work just fine. I checked the .vimrc file and didn't see anything suspicious that could cause this.

I'm on a Mac, OS X 10.8 and on VIM 7.3.923 (just upgraded, that didn't resole any problems either).

I ran :map which resulted in:

gx            <Plug>NetrwBrowseX                                                                                                                                                               
<Plug>NetrwBrowseX * :call netrw#NetrwBrowseX(expand("<cWORD>"),0)<CR>
<BS>          "-d
<D-x>         "*d
<D-c>         "*y
<D-v>         "-d"*P
<D-v>         "*P

And :imap which resulted in:

<D-v>         <C-R>*

Ideas?

like image 554
antjanus Avatar asked Dec 09 '22 15:12

antjanus


1 Answers

Have you mapped the escape key?

I had the same issue when I tried remapping the escape key to clear out search highlighting.

like image 106
Kronenbourg Avatar answered Mar 07 '23 19:03

Kronenbourg