Getting strange characters when pasting into my iterm2 terminal
I am using iterm2 v 3.0.15 on Mac Sierra. I am having problems cutting and pasting from other places (like text on a webpage) into my terminal. For example, I select text from a web page, press Command + C, go to terminal, and then press Command + V, I get
localhost:myproject nataliab$ 00~on the next01~
Notice the "00 ~" and "01 ~" before and after my text. I don't see these characters when I cut and paste them into a text editor or elsewhere. How can I remove these special characters when I cut and paste into my iterm2 terminal?
I recently started to encounter this behavior in iterm2 as well. Killing and restarting the session fixes it, but loses the context. I found this comment about parenthesized insert mode and tried printf '\e[?2004h'
to exit parenthesis insert mode and restore terminal and it worked great for me.
source to share
Adding set t_BE=
to .vimrc to turn off parenthesis insertion mode should fix that. you can call: https://gitlab.com/gnachman/iterm2/issues/5698
source to share
I can't guarantee the terms of this fix because I've been messing around with the solutions above for a while, but the following problem was resolved for me:
iTerm2 -> Settings -> Keys -> double click to edit the target -> βv
In the "Speed" section, set the "Cartridge size" to 256B and the "Interchanck" delay to 100ms.
source to share