When I start with a blank .vimrc in ~, and add imap jj <esc>
to it, everything works fine at first (i.e. typing jj exits from insert mode -> normal mode). But as I add more to my .vimrc, eventually typing jj will skip the cursor ahead some seemingly random, short distance (a couple of words or a couple of lines) in addition to entering normal mode. I haven't pinned it down to any specific thing I've added to .vimrc -- it just at some point goes from working correctly to malfunctioning. Then, if I delete the .vimmrc file, start over again with a new .vimrc with just that mapping, the weird jumping goes away.
Any clues as to what's going on?
edit:
my complete ~/.vimrc
set nocompatible
inoremap jj <esc>
That's it. I've renamed /etc/vim/vimrc & /usr/share/vim/vimrc to vimrc.0, and similarly moved ~/plugins & ~/ftplugins.
:imap
& :inoremap
both show just i jj * <Esc>