5

I get 0~ symbol before the text and 1~ after the text while pasting it on to the terminal window.

Is it related to some edits that I made in .bashrc or .vimrc files?

Eg: I see '0~allowed1~' when I press ctrl+shift+v while pasting the text 'allowed'

2 Answers2

2

There is an additional way that this problem can manifest. Readline's ~/.inputrc file can contain the following:

set enable-bracketed-paste On

This is not fixed by the above method and has eluded me for months. Removing this line or setting

set enable-bracketed-paste Off

will fix this nicely.

Consult the man page for readline for more information on this parameter and the ~/.inputrc file since you can change the file's location with the INPUTRC environment variable

DanG
  • 21
1

I was able to solve this problem by adding set t_BE= to my .vimrc file. thanks for the help @terdon and @steeldriver.

Copy-Paste in xfce4-terminal adds 0~ and 1~