After vim has been open for a while (on Ubuntu in a console), I notice that commands start behaving differently. Mostly, they'll change or delete an extra character. For example:

  ^ cursor here

Typing dl should delete the 3, but instead deletes 34.

Similarly, typing s should delete the 3 and take me into insert mode with the cursor over the 4, but instead deletes 34 and takes me into insert mode with the cursor over the 5.

I also notice sometimes that deleting a word will delete an extra character as well. For example:

hello world
^ cursor here

de should delete hello and place the cursor over the space, but instead would delete the space as well, with the cursor over the w.

What would cause this? Is there anything I can check, next time this happens, to debug it?

Here's my .vimrc, although it's long and references a bunch of plugins so I can't expect anyone to go through it for me: http://pastebin.com/z33b33E2

  • 3
    Start with the basics: disable your vimrc (vim -Nu NONE), if that works, try bisecting your plugins, etc. – muru Feb 2 '16 at 7:53
  • 1
    @muru: unfortunately it doesn't seem to repro until being open for several hours at least -- some rare event must be triggering it, but I haven't narrowed it down. so it may take a month to bisect ;-) – mgiuffrida Feb 2 '16 at 7:59
  • 1
    What if you save the session, and restart the session? Tried different versions? – muru Feb 2 '16 at 8:00
  • I didn't know you could save the session -- I'll give that a try next time and see what happens. I've just been quitting and starting over. BTW, I edited to include my .vimrc: pastebin.com/z33b33E2 – mgiuffrida Feb 2 '16 at 8:04
  • 3
    what does omap lshow? – Christian Brabandt Feb 2 '16 at 10:27