Validus Oculus
Validus Oculus

Reputation: 2701

Weird characters are added when I press alt-tab in vim's insert mode

Hello Dear Vim Lovers,

The situation is this.

I am editing something in vim. While I am in insert mode, I press alt-tab key to switch to another window. When I return back to vim, I am seeing alt and tab keys were captured by vim and inserted into my text.

It seems like [O[I[O[I[O[I[O[I.

I am working in gnome-terminal. I do not recall this behavior in my previous setups. There must be something wrong but I could not figure it out yet. In case anyone knows how to fix it, please let me know.

Thank you!

Upvotes: 2

Views: 532

Answers (1)

Mason Bourgeois
Mason Bourgeois

Reputation: 171

I was running into this problem after remapping <Esc> to a noop as recommended here. Deleting the remap stopped the characters from being inserted.

Upvotes: 2

Related Questions