Follow the steps below
$ vim ~/.vimrc
Put the following in your vimrc (change
set pastetoggle=
save and exit.
To paste from another application:
* Start insert mode.
* Press F2 (toggles the 'paste' option on)
* Use your terminal to paste text from the clipboard.
* Press F2 (toggles the 'paste' option off).