When I try to paste a long text/code in any editor in Terminal or Iterm2, only part of the text is pasted.
For example, as you can see below, I just generated a wall of text with 3000 words and copied it. When I try to paste the text, the editor stucks. I can't even use arrow keys. it starts write characters like ^[OA, ^[OB etc.
I can't even escape insert mode with the esc key. Only Ctrl + C works.
I tried to set the slow paste setting on Iterm2 but nothing changed.
Any help appreciated.