Or, to avoid turning paste on and off, just put the text. Instead of switching to insert and paste mode in command line mode, type:
"+p
Buffer + corresponds to the system buffer.
If you insist on using paste , I would suggest matching something to switch it. For example :set pastetoggle=<F2> (wow, not realizing that there is a special option for this)
Jefromi Jul 09 2018-10-09T00: 00Z
source share