When you want to paste something in terminal (non-gui) - vim you often want to run the following command before pasting:
set paste
And following after pasting:
set nopaste
This prevents vim from auto-indenting the pasted code. Note that the text in the tooltip now says:
-- INSERT (paste) --